Closed dhirajdhakal09 closed 8 years ago
Hi,
On creating an entity with POST verb I would expect to get 201 created along with the newly created json response, but it is giving 200 OK instead.
The following is the definition:
[HttpPost] [ReturnsResource(typeof(AddressResource))] [Route("api/address")] public CustomModel.Address Insert([FromBody] CustomModel.Address address) { }
Please help me asap.
You can use the regular ASP.Net way of doing this. Saule does not change that.
Thanks jouke. :)
Hi,
On creating an entity with POST verb I would expect to get 201 created along with the newly created json response, but it is giving 200 OK instead.
The following is the definition:
Please help me asap.