C# Class EGSW.Services.Directory.AddressService

Inheritance: IAddressService
Exibir arquivo Open project: careerengine/EGSW-Project

Public Methods

Method Description
AddressService ( IRepository
addressRepository ) : System
DeleteAddress ( Address address ) : void

Deletes an address

GetAddressById ( int addressId ) : Address
InsertAddress ( Address address ) : void

Inserts an address

IsAddressValid ( Address address ) : bool

Gets a value indicating whether address is valid (can be saved)

UpdateAddress ( Address address ) : void

Updates the address

Method Details

AddressService() public method

public AddressService ( IRepository
addressRepository ) : System
addressRepository IRepository
return System

DeleteAddress() public method

Deletes an address
public DeleteAddress ( Address address ) : void
address EGSW.Data.Address Address
return void

GetAddressById() public method

public GetAddressById ( int addressId ) : Address
addressId int
return EGSW.Data.Address

InsertAddress() public method

Inserts an address
public InsertAddress ( Address address ) : void
address EGSW.Data.Address Address
return void

IsAddressValid() public method

Gets a value indicating whether address is valid (can be saved)
public IsAddressValid ( Address address ) : bool
address EGSW.Data.Address Address to validate
return bool

UpdateAddress() public method

Updates the address
public UpdateAddress ( Address address ) : void
address EGSW.Data.Address Address
return void