Esempio n. 1
0
 public IActionResult UpdateItem(ItemUpdate item)
 {
     try
     {
         return(new JsonResult(ItemBAL.UpdateItem(item)));
     }
     catch (Exception ex)
     {
         return(StatusCode(StatusCodes.Status500InternalServerError, "Failed to update Item"));
     }
 }