public bool UpdateClient(int clientId, DomainClient client) { if (client != null) { _repository.Clients.UpdateClient(clientId, client.ToInfrastructure()); return(true); } else { return(false); } }
public DomainClient CreateClient(DomainClient client) { _repository.Clients.CreateClient(client?.ToInfrastructure()); return(client); }