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;
     }
 }
示例#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);
     }
 }
示例#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);
 }
示例#11
0
 public List <Model.StockCard> getStockCard(string itemID)
 {
     BusinessLogic.InventoryController BL = new BusinessLogic.InventoryController();
     return(BL.getStockCard(itemID));
 }
示例#12
0
 public List <Model.ItemPrice> getItemPrice(string ItemID)
 {
     BusinessLogic.InventoryController BL = new BusinessLogic.InventoryController();
     return(BL.getItemPrice(ItemID));
 }
示例#13
0
 public Item getItemDetails(string itemID)
 {
     BusinessLogic.InventoryController BL = new BusinessLogic.InventoryController();
     return(BL.getItemDetails(itemID));
 }
示例#14
0
 public List <Item> getItemByName(string itemName)
 {
     BusinessLogic.InventoryController BL = new BusinessLogic.InventoryController();
     return(BL.getItemByName(itemName));
 }
示例#15
0
 public List <Item> getItemByCategory(string category)
 {
     BusinessLogic.InventoryController BL = new BusinessLogic.InventoryController();
     return(BL.getItemByCategory(category));
 }
示例#16
0
 public List <Item> getItem()
 {
     BusinessLogic.InventoryController BL = new BusinessLogic.InventoryController();
     return(BL.getItem());
 }