In my api reponse i need to return BadRequest Response with Object which is given by user. I am using IHttpActionResult
as return type. can any one try to help me.
I have tried
public IHttpActionResult Test()
{
var Response = Method1();
return BadRequest(Response);
}
But BadRequest doesn't accept the parameter.