示例#1
0
 public IActionResult Delete(int id)
 {
     try
     {
         _restaurantAppService.Delete(id);
         return(ResponseOk(_restaurantAppService.GetAll()));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }