title: Angular/MVC: Sending data to controller in backend
body: <p>I would like to send the array <strong>customparameters</strong> from my <em>Angular 4</em> frontend to my <em>ASP.NET MVC</em> controller in the backend.</p>
  
  <p>I receive the array in my ng-service.ts and would like to send it to the backend like this:</p>
  
  <pre><code>setCustomParameters(customparameters) {
      console.log(customparameters); //it's working
  
      this.http.post('/api/customparameter', customparameters). //is that right?
        subscribe();
    }
  </code></pre>
  
  <p>But I am not sure, if this is all I have to do. On the other hand I can't find via google how I have to write my controller method in the backend:</p>
  
  <pre><code>// POST: api/customparameter
      [HttpPost]
      public void Post([FromBody]string value) //how to change?
      {
       //doing something
      }
  </code></pre>
  
  <p>Hopefully someone has time and pleasure to help me. Thanks in forward!</p>