public bool createItemPrice(List<ItemPrice> ip)
 {
     BusinessLogic.InventoryController BL = new BusinessLogic.InventoryController();
     if (BL.createItemPrice(ip))
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.OK;
         return true;
     }
     else
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.NotFound;
         return false;
     }
 }
 public bool deleteItem(string ItemID)
 {
     BusinessLogic.InventoryController BL = new BusinessLogic.InventoryController();
     if (BL.deleteItem(ItemID))
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.OK;
         return true;
     }
     else
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.NotFound;
         return false;
     }
 }
Example #3
0
 public bool deleteItem(string ItemID)
 {
     BusinessLogic.InventoryController BL = new BusinessLogic.InventoryController();
     if (BL.deleteItem(ItemID))
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.OK;
         return(true);
     }
     else
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.NotFound;
         return(false);
     }
 }
Example #4
0
 public bool createItemPrice(List <ItemPrice> ip)
 {
     BusinessLogic.InventoryController BL = new BusinessLogic.InventoryController();
     if (BL.createItemPrice(ip))
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.OK;
         return(true);
     }
     else
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.NotFound;
         return(false);
     }
 }
 public List<Model.ItemPrice> getItemPrice(string ItemID)
 {
     BusinessLogic.InventoryController BL = new BusinessLogic.InventoryController();
     return BL.getItemPrice(ItemID);
 }
 public Item getItemDetails(string itemID)
 {
     BusinessLogic.InventoryController BL = new BusinessLogic.InventoryController();
     return BL.getItemDetails(itemID);
 }
 public List<Item> getItemByName(string itemName)
 {
     BusinessLogic.InventoryController BL = new BusinessLogic.InventoryController();
     return BL.getItemByName(itemName);
 }
 public List<Item> getItemByCategory(string category)
 {
     BusinessLogic.InventoryController BL = new BusinessLogic.InventoryController();
     return BL.getItemByCategory(category);
 }
 public List<Item> getItem()
 {
     BusinessLogic.InventoryController BL = new BusinessLogic.InventoryController();
     return BL.getItem();
 }
 public List<Model.StockCard> getStockCard(string itemID)
 {
     BusinessLogic.InventoryController BL = new BusinessLogic.InventoryController();
     return BL.getStockCard(itemID);
 }
Example #11
0
 public List <Model.StockCard> getStockCard(string itemID)
 {
     BusinessLogic.InventoryController BL = new BusinessLogic.InventoryController();
     return(BL.getStockCard(itemID));
 }
Example #12
0
 public List <Model.ItemPrice> getItemPrice(string ItemID)
 {
     BusinessLogic.InventoryController BL = new BusinessLogic.InventoryController();
     return(BL.getItemPrice(ItemID));
 }
Example #13
0
 public Item getItemDetails(string itemID)
 {
     BusinessLogic.InventoryController BL = new BusinessLogic.InventoryController();
     return(BL.getItemDetails(itemID));
 }
Example #14
0
 public List <Item> getItemByName(string itemName)
 {
     BusinessLogic.InventoryController BL = new BusinessLogic.InventoryController();
     return(BL.getItemByName(itemName));
 }
Example #15
0
 public List <Item> getItemByCategory(string category)
 {
     BusinessLogic.InventoryController BL = new BusinessLogic.InventoryController();
     return(BL.getItemByCategory(category));
 }
Example #16
0
 public List <Item> getItem()
 {
     BusinessLogic.InventoryController BL = new BusinessLogic.InventoryController();
     return(BL.getItem());
 }