Web Api doesn't support multiple [FromBody] params I think. But you can use Api model, to passing more parameters to your api action.:
public class YourApiModel
{
public int A{ get; set; }
public int B { get; set; }
//...other properties
}
After that, you can simply use this in your API controller Test:
// POST: api/test
public IHttpActionResult Post([FromBody] YourApiModel model)
{
//do something
}
Hope it help.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…