Beispiel #1
0
 public GuardarRestauranteResponse Guardar(Restaurante restaurante)
 {
     try
     {
         restaurante.Evaluacio();
         _conexion.Open();
         _repositorio.Guardar(restaurante);
         _conexion.Close();
         return(new GuardarRestauranteResponse(restaurante));
     }
     catch (Exception e)
     {
         return(new GuardarRestauranteResponse($"Error de la Aplicacion: {e.Message}"));
     }
     finally { _conexion.Close(); }
 }