C# Class ReaLocate.Services.Data.PhotosService

Inheritance: IPhotosService
Mostra file Open project: MichaelaIvanova/ReaLocate

Public Methods

Method Description
Add ( Photo newPhoto ) : int
EncodeId ( int id ) : string
GetAll ( int skip, int take ) : IQueryable
GetByEncodedId ( string id ) : Photo
GetById ( int id ) : IQueryable
PhotosService ( IDbRepository photos, IIdentifierProvider identifierProvider ) : System

Method Details

Add() public method

public Add ( Photo newPhoto ) : int
newPhoto Photo
return int

EncodeId() public method

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

GetAll() public method

public GetAll ( int skip, int take ) : IQueryable
skip int
take int
return IQueryable

GetByEncodedId() public method

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

GetById() public method

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

PhotosService() public method

public PhotosService ( IDbRepository photos, IIdentifierProvider identifierProvider ) : System
photos IDbRepository
identifierProvider IIdentifierProvider
return System