public HttpResponseMessage GetRequestByReqId(int reqId) { RequestVM request = RequestBL.GetReq(reqId); if (request == null) { return(Request.CreateResponse(HttpStatusCode.InternalServerError)); } return(Request.CreateResponse(HttpStatusCode.OK, request)); }
public HttpResponseMessage GetRequestByDeptCodeStatus(string deptCode, string status) { List <RequestVM> reqlist = RequestBL.GetReq(deptCode, status); if (reqlist == null) { return(Request.CreateResponse(HttpStatusCode.InternalServerError)); } return(Request.CreateResponse(HttpStatusCode.OK, reqlist)); }
public HttpResponseMessage GetRequestByDateRange(int empId, string status, DateTime fromDate, DateTime toDate) { List <RequestVM> reqlist = RequestBL.GetReq(empId, status, fromDate, toDate); if (reqlist == null) { return(Request.CreateResponse(HttpStatusCode.InternalServerError)); } return(Request.CreateResponse(HttpStatusCode.OK, reqlist)); }
public static RequestVM GetRequestByReqId(int reqId) { return(RequestBL.GetReq(reqId)); }
public static List <RequestVM> GetRequestByDateRange(int empId, string status, DateTime fromDate, DateTime toDate) { return(RequestBL.GetReq(empId, status, fromDate, toDate)); }
public static List <RequestVM> GetReq(int empId, string status) { return(RequestBL.GetReq(empId, status)); }