コード例 #1
0
        public HttpResponseMessage GetRequestByReqId(int reqId)
        {
            RequestVM request = RequestBL.GetReq(reqId);

            if (request == null)
            {
                return(Request.CreateResponse(HttpStatusCode.InternalServerError));
            }
            return(Request.CreateResponse(HttpStatusCode.OK, request));
        }
コード例 #2
0
        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));
        }
コード例 #3
0
        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));
        }
コード例 #4
0
 public static RequestVM GetRequestByReqId(int reqId)
 {
     return(RequestBL.GetReq(reqId));
 }
コード例 #5
0
 public static List <RequestVM> GetRequestByDateRange(int empId, string status, DateTime fromDate, DateTime toDate)
 {
     return(RequestBL.GetReq(empId, status, fromDate, toDate));
 }
コード例 #6
0
 public static List <RequestVM> GetReq(int empId, string status)
 {
     return(RequestBL.GetReq(empId, status));
 }