public HttpResponseMessage RejectRequest(int reqId, int empId, string cmt) { bool isRejected = RequestBL.RejectRequest(reqId, empId, cmt); if (isRejected == false) { return(Request.CreateResponse(HttpStatusCode.InternalServerError)); } return(Request.CreateResponse(HttpStatusCode.OK)); }
public static bool RejectRequest(int reqId, int empId, string cmt) { return(RequestBL.RejectRequest(reqId, empId, cmt)); }