Пример #1
0
 public ActionResult <bool> UpdateInventoryPrice(RawUpdate obj)
 {
     if (!ModelState.IsValid)
     {
         return(StatusCode(400, "Failed to create models"));
     }
     else
     {
         if (storeLogic.UpdateDatabase(obj))
         {
             return(StatusCode(201, "Everything updated successfully"));
         }
         else
         {
             return(StatusCode(500, "One or more items may have failed to update."));
         }
     }
 }