コード例 #1
0
        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));
        }
コード例 #2
0
 public static bool RejectRequest(int reqId, int empId, string cmt)
 {
     return(RequestBL.RejectRequest(reqId, empId, cmt));
 }