There is a Web API application.
There is an Action that catches the request:
[HttpPost] public HttpResponseMessage GetOrder(OrderRequest request) { return ResponseHandler.GetResponse(Request, ActionHandler.Order(request)); } There is a Model with the description of the query properties:
public class OrderRequest { public int OrderId { get; set; } public string Description { get; set; } } In the client that sends a POST request, the Description parameter is passed as $Description , respectively, when the request hits the Action only the OrderId field is OrderId , and the Description parameter is left blank.
How in the OrderRequest for the Description property to indicate that it should be mapped on $Description in the request?
Can this be made an attribute of the Description property?
And if you can throw an article with the theory of how such a mapping is done, I did not find
