I have to send the noOfRecords variable in the response.
public HttpResponseMessage GetWareHouses(int pageNumber, int noofRows)
{
var result = myModelObject.SelectTableData(pageNumber, noofRows);
int numberOfRec = result.Count; /*I need to send this data in response.*/
if(numberOfRec>0)
return Request.CreateResponse(HttpStatusCode.OK, result)
}
In your function, there are at least two problems.
IActionResult
thus