Пример #1
0
        public static bool AddBookmark(int empId, string itemCode)
        {
            RequestDetailVM req = RequestDetailBL.AddReqDet(empId, itemCode, 1, "Bookmarked");

            if (req != null)
            {
                return(true);
            }
            return(false);
        }
Пример #2
0
        public static bool AddToCart(int empId, string itemCode, int reqQty)
        {
            RequestDetailVM req = RequestDetailBL.AddReqDet(empId, itemCode, reqQty, "Unsubmitted");

            if (req != null)
            {
                return(true);
            }
            return(false);
        }
 public HttpResponseMessage removeReqDet(int empId, string itemCode, string status)
 {
     try
     {
         RequestDetailBL.removeReqDet(empId, itemCode, status);
         return(Request.CreateResponse(HttpStatusCode.OK));
     }
     catch
     {
         return(Request.CreateResponse(HttpStatusCode.InternalServerError));
     }
 }
Пример #4
0
 public static bool RemoveReqDet(int reqId, string itemCode)
 {
     return(RequestDetailBL.removeReqDet(reqId, itemCode));
 }
Пример #5
0
        public static List <RequestDetailVM> GetReqDetList(int reqId)
        {
            List <RequestDetailVM> reqDetails = RequestDetailBL.GetReqDetList(reqId);

            return(BusinessLogic.AddItemDescToReqDet(reqDetails));
        }