public HttpResponseMessage AddRequest(int empId, string status) { RequestVM request = RequestBL.AddReq(empId, status); if (request == null) { return(Request.CreateResponse(HttpStatusCode.InternalServerError)); } return(Request.CreateResponse(HttpStatusCode.OK, request)); }