Beispiel #1
0
 public IActionResult DeleteItem(int id)
 {
     try
     {
         ItemBAL.DeleteItem(id);
         return(Ok());
     }
     catch (Exception ex)
     {
         return(StatusCode(StatusCodes.Status500InternalServerError, "Failed to delete Item"));
     }
 }