public IActionResult Delete(int id) { try { _restauranteService.Deletar(id); return(Ok("Operação realizada com sucesso")); } catch (Exception ex) { return(BadRequest(ex.Message)); } }