public ActionResult Delete(int id) { var restaurante = _restauranteService.Obtener(id); if (restaurante == null) { return(BadRequest()); } _restauranteService.Eliminar(id); return(Ok()); }