I\'m using an Angular $resource to post a model to a webapi endpoint, but Angular sends the data in the request payload, rather than a JSON body or form parameters. As a res
You could use the $http module.
Here's an example:
Index
- FirstName: {{person.FirstName}}
- LastName: {{person.LastName}}
- UserName: {{person.Username}}
- IsApproved: {{person.IsApproved}}
- IsOnlineNow: {{person.IsOnlineNow}}
- IsChecked: {{person.IsChecked}}
Assuming the following controller:
public class ValuesController : ApiController
{
[HttpPost]
public User Post(User model)
{
return model;
}
}