public async Task <int> Nuevo(ClienteModel cliente) { var sp = "ClientesObtener"; try { var connexion = factoryConnection.GetConnection(); var resultado = await connexion.ExecuteAsync(sp, new { Apellido = cliente.Apellido, Nombre = cliente.Nombre }, commandType : System.Data.CommandType.StoredProcedure); return(resultado); } catch (Exception ex) { throw new Exception("Error al insertar el registro", ex); } finally { factoryConnection.CloseConnection(); } }
public Task <int> Actualiza(ClienteModel cliente) { throw new NotImplementedException(); }