Пример #1
0
        public HttpResponseMessage SubmitRequest(int reqId, List <RequestDetailVM> reqDetList)
        {
            RequestVM request = RequestBL.SubmitReq(reqId, reqDetList);

            if (request == null)
            {
                return(Request.CreateResponse(HttpStatusCode.InternalServerError));
            }
            return(Request.CreateResponse(HttpStatusCode.OK, request));
        }
        public static bool SubmitRequest(int reqId, List <RequestDetailVM> reqDetList)
        {
            RequestVM req = RequestBL.SubmitReq(reqId, reqDetList);

            if (req != null)
            {
                return(true);
            }
            return(false);
        }