public HttpResponseMessage DeleteRequestByEmpIdStatus(int empId, string status) { bool isRemoved = RequestBL.RemoveReq(empId, status); if (isRemoved == false) { return(Request.CreateResponse(HttpStatusCode.InternalServerError)); } return(Request.CreateResponse(HttpStatusCode.OK)); }
public HttpResponseMessage DeleteRequestByReqId(int reqId) { bool isRemoved = RequestBL.RemoveReq(reqId); if (isRemoved == false) { return(Request.CreateResponse(HttpStatusCode.InternalServerError)); } return(Request.CreateResponse(HttpStatusCode.OK)); }
public static bool CancelRequest(int reqId) { return(RequestBL.RemoveReq(reqId)); }