예제 #1
0
        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));
        }
예제 #2
0
        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));
 }