Example #1
0
 public bool updateItemPrice(List <ItemPrice> itemprice)
 {
     BusinessLogic.InventoryController BL = new BusinessLogic.InventoryController();
     if (BL.updateItemPrice(itemprice))
     {
         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 updateItemPrice(List<ItemPrice> itemprice)
 {
     BusinessLogic.InventoryController BL = new BusinessLogic.InventoryController();
     if (BL.updateItemPrice(itemprice))
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.OK;
         return true;
     }
     else
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.NotFound;
         return false;
     }
 }