title: why http.post didn't call my controller in angular 2
body: <p>this is my service in my angular2 project and I would like to use the create method in the service to call my controller.</p>
  
  <pre><code> create(maillingId: string, name: string, phone: string): Observable&lt;void&gt; {      
      var rp = new RecipientDto(maillingId, name, phone);
  
      console.log(JSON.stringify(rp));
      console.log(this.apiUrl);
      console.log(this.headers); 
  
      return this.http.post(this.apiUrl, JSON.stringify(rp), { headers: this.headers })
          .do(null,
          () =&gt; {
          })
          .map&lt;any&gt;(response =&gt; { });
  
  }
  </code></pre>
  
  <p>this is what I print out<a href="https://i.stack.imgur.com/uGKt0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uGKt0.png" alt="in my chrome console"></a>
  this is my workable postman call<a href="https://i.stack.imgur.com/MSsX1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MSsX1.png" alt="workable postman call"></a>
  and last is my controller code</p>
  
  <pre><code> [HttpPost]
      public IActionResult Post([FromBody]RecipientDto recipientDto)
      {
          MailingList ml = _repository.Get&lt;MailingList&gt;(recipientDto.MaillingId);
  
          if (ml != null)
          {               
              var rp = new Recipient(Guid.NewGuid());             
              rp.IsActivated = true;
              rp.Name = recipientDto.Name;
              rp.PhoneNumber = recipientDto.Phone;
              ml.Recipients.Add(rp);        
              return Ok();
          }
          return HttpNotFound();          
      }
  </code></pre>
  
  <p>one thing to mention that there is no fiddler record when my front-end create method is called.</p>
  
  <p>same question for delete(also don't call the api) but for the getAll() is workable </p>
  
  <pre><code> getAll(id:string): Observable&lt;Recipient[]&gt; {       
  
      return this.http.get(`${this.apiUrl+'/'+id}`)
          .map&lt;any&gt;(res =&gt; &lt;any&gt;res.json())
          .map(a=&gt; &lt;Recipient[]&gt;a);;
  
  }
  </code></pre>
  
  <p>and my controller for get</p>
  
  <pre><code> [HttpGet("{mlId}")]
      public IEnumerable&lt;Recipient&gt; Get(string mlId)
      {         
          List&lt;Recipient&gt; list = _repository.Get&lt;MailingList&gt;(mlId).Recipients;
  
          return list;
      }
  </code></pre>