Czytanie FromUri i FromBody w tym samym czasie
Mam nową metodę w web api
[HttpPost]
public ApiResponse PushMessage( [FromUri] string x, [FromUri] string y, [FromBody] Request Request)
gdzie jest klasa zgłoszeń
public class Request
{
public string Message { get; set; }
public bool TestingMode { get; set; }
}
Robię zapytanie do localhost / Pusher / PushMessage? X = foo & y = bar z PostBody:
{ Message: "foobar" , TestingMode:true }
Czy czegoś brakuje?