I have this HttpPost Action in one of my application controllers that takes the following parameters:
[HttpPost]
IHttpActionResult Send(List<int> channelsIds, List<uint> destinationsIds, string content,
string title, MessagePriority priority)
{
..
}
I know that usually complex objects should be sent through body and simple ones through the uri, but I have read that only one parameter can be taken from the body. If so what is the best way to handle this one?
Moreover, should I perefer to use one of these ways to pass parameters?? Is one of them better?
Edit: Can I join all the parameters into a single SendRequest object? How will that work?