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 #2
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);
     }
 }