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