public static bool AddBookmark(int empId, string itemCode) { RequestDetailVM req = RequestDetailBL.AddReqDet(empId, itemCode, 1, "Bookmarked"); if (req != null) { return(true); } return(false); }
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)); } }
public static bool RemoveReqDet(int reqId, string itemCode) { return(RequestDetailBL.removeReqDet(reqId, itemCode)); }
public static List <RequestDetailVM> GetReqDetList(int reqId) { List <RequestDetailVM> reqDetails = RequestDetailBL.GetReqDetList(reqId); return(BusinessLogic.AddItemDescToReqDet(reqDetails)); }