C# Class ReaLocate.Services.Data.AgenciesService

Inheritance: IAgenciesService
Mostra file Open project: MichaelaIvanova/ReaLocate

Public Methods

Method Description
Add ( Agency newAgency ) : int
AgenciesService ( IRepository agencies, IIdentifierProvider identifierProvider ) : Contracts
Delete ( Agency agencyFromDb ) : void
EncodeId ( int id ) : string
GetAll ( ) : IQueryable
GetByEncodedId ( string id ) : Agency
GetById ( int id ) : Agency
Update ( Agency dbAgency ) : void

Method Details

Add() public method

public Add ( Agency newAgency ) : int
newAgency Agency
return int

AgenciesService() public method

public AgenciesService ( IRepository agencies, IIdentifierProvider identifierProvider ) : Contracts
agencies IRepository
identifierProvider IIdentifierProvider
return Contracts

Delete() public method

public Delete ( Agency agencyFromDb ) : void
agencyFromDb Agency
return void

EncodeId() public method

public EncodeId ( int id ) : string
id int
return string

GetAll() public method

public GetAll ( ) : IQueryable
return IQueryable

GetByEncodedId() public method

public GetByEncodedId ( string id ) : Agency
id string
return Agency

GetById() public method

public GetById ( int id ) : Agency
id int
return Agency

Update() public method

public Update ( Agency dbAgency ) : void
dbAgency Agency
return void