title: Angular 6 Post Request to .NET Core API
body: <p>I am working with angular 6 trying to send a post request using httpclient , but always receive null body on the server side.</p>
  
  <pre><code> save( rules:RuleModel[]){
  
  let _headers: HttpHeaders = new HttpHeaders({
    'Content-Type': 'application/json; charset=utf-8' 
  });
  
  return this._httpClient.post(AppConfig.BaseUrl,JSON.stringify(rules), {headers:_headers} );   } 
  </code></pre>
  
  <p>and API function</p>
  
  <pre><code>[HttpPost]
  public List&lt;Rule&gt; AddTemplateTextRules( [FromBody]Rule[] Rules)
  {
      try
      {
          return RuleManager.AddRule(Rules);
      }
      catch (Exception e)
      {
          return null;
      }
      return null; 
  }
  </code></pre>