C# Class Investor.Common.Service.Client.Logic.ClientLogic

Inheritance: IClientLogic
Show file Open project: johnhinz/Investor

Public Methods

Method Description
ClientLogic ( IClientRepository repository ) : Investor.Common.Shared.Interfaces
Create ( ClientPoco client ) : void
CreateAddress ( long id, ClientAddressPoco address ) : void
CreatePhoneNumber ( long id, ClientPhoneNumberPoco phonenumber ) : void
DeleteAddress ( long clientId, long addressId ) : void
DeleteClient ( long id ) : void
DeletePhoneNumber ( long clientId, long phonenumberId ) : void
Read ( long id ) : ClientDto
ReadAddresses ( long id ) : IEnumerable
ReadFirstName ( string firstname ) : IEnumerable
ReadLastName ( string lastname ) : IEnumerable
ReadOneAddress ( long clientId, long addressId ) : IEnumerable
ReadOnePhoneNumber ( long clientId, long phonenumerId ) : IEnumerable
ReadPhoneNumbers ( long id ) : IEnumerable
UpdateAddress ( long clientId, long addressId, ClientAddressPoco address ) : void
UpdateClient ( ClientPoco client ) : void
UpdatePhoneNumber ( long clientId, long PhoneNumberId, ClientPhoneNumberPoco phonenumber ) : void

Method Details

ClientLogic() public method

public ClientLogic ( IClientRepository repository ) : Investor.Common.Shared.Interfaces
repository IClientRepository
return Investor.Common.Shared.Interfaces

Create() public method

public Create ( ClientPoco client ) : void
client Investor.Common.Shared.Pocos.ClientPoco
return void

CreateAddress() public method

public CreateAddress ( long id, ClientAddressPoco address ) : void
id long
address Investor.Common.Shared.Pocos.ClientAddressPoco
return void

CreatePhoneNumber() public method

public CreatePhoneNumber ( long id, ClientPhoneNumberPoco phonenumber ) : void
id long
phonenumber Investor.Common.Shared.Pocos.ClientPhoneNumberPoco
return void

DeleteAddress() public method

public DeleteAddress ( long clientId, long addressId ) : void
clientId long
addressId long
return void

DeleteClient() public method

public DeleteClient ( long id ) : void
id long
return void

DeletePhoneNumber() public method

public DeletePhoneNumber ( long clientId, long phonenumberId ) : void
clientId long
phonenumberId long
return void

Read() public method

public Read ( long id ) : ClientDto
id long
return Investor.Common.Shared.DataTransferObjects.ClientDto

ReadAddresses() public method

public ReadAddresses ( long id ) : IEnumerable
id long
return IEnumerable

ReadFirstName() public method

public ReadFirstName ( string firstname ) : IEnumerable
firstname string
return IEnumerable

ReadLastName() public method

public ReadLastName ( string lastname ) : IEnumerable
lastname string
return IEnumerable

ReadOneAddress() public method

public ReadOneAddress ( long clientId, long addressId ) : IEnumerable
clientId long
addressId long
return IEnumerable

ReadOnePhoneNumber() public method

public ReadOnePhoneNumber ( long clientId, long phonenumerId ) : IEnumerable
clientId long
phonenumerId long
return IEnumerable

ReadPhoneNumbers() public method

public ReadPhoneNumbers ( long id ) : IEnumerable
id long
return IEnumerable

UpdateAddress() public method

public UpdateAddress ( long clientId, long addressId, ClientAddressPoco address ) : void
clientId long
addressId long
address Investor.Common.Shared.Pocos.ClientAddressPoco
return void

UpdateClient() public method

public UpdateClient ( ClientPoco client ) : void
client Investor.Common.Shared.Pocos.ClientPoco
return void

UpdatePhoneNumber() public method

public UpdatePhoneNumber ( long clientId, long PhoneNumberId, ClientPhoneNumberPoco phonenumber ) : void
clientId long
PhoneNumberId long
phonenumber Investor.Common.Shared.Pocos.ClientPhoneNumberPoco
return void