public void AgregarCliente(Cliente cliente) { TransactionResult resultado = mapper.InsertarCliente(cliente); if (!resultado.IsOk) { throw new Exception("Error al agregar cliente. Detalle: " + resultado.Error); } }
public void AgregarCliente(Cliente cliente) { TransactionResult resultado = mapper.InsertarCliente(cliente); if (!resultado.IsOk) { throw new Exception("Error al agregar cliente. Detalle: " + resultado.Error); } }