public bool updateItem(CartItems item)
 {
     BusinessLogic.RequestCartController BL = new BusinessLogic.RequestCartController();
     if (BL.updateItem(item))
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.OK;
         return true;
     }
     else
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.NotFound;
         return false;
     }
 }
        /// <summary>
        /// getItemsToRestock
        /// </summary>
        /// <param name="ReqID">Requisition ID</param>
        /// <param name="EmpID">Employee ID</param>
        /// <returns></returns>
        public List<CartItems> getItemsToReorder(string ReqID, string EmpID)
        {
            int reqID = Convert.ToInt32(ReqID);
            List<RequisitionDetail> reqDetailList = ctx.RequisitionDetail.Where(x => x.ReqID == reqID).ToList();

            List<CartItems> cartItemList = new List<CartItems>();
            foreach(RequisitionDetail reqDetail in reqDetailList)
            {
                if(reqDetail.IssueQty != reqDetail.RequestQty)
                {
                    CartItems item = new CartItems();
                    item.EmpID = Convert.ToInt32(EmpID);
                    item.ItemID = reqDetail.ItemID;
                    item.Qty = reqDetail.RequestQty - reqDetail.IssueQty;
                    cartItemList.Add(item);
                }
            }

            return cartItemList;
        }