C# Class QuizProjectMvc.Services.Data.CategoriesService

Inheritance: ICategoriesService
Exibir arquivo Open project: kidroca/project-quiz-mvc

Public Methods

Method Description
CategoriesService ( IDbRepository categories, ICacheService cache ) : System.Collections.Generic
Create ( QuizCategory category ) : void
Delete ( int id ) : bool
FilterByPattern ( string pattern ) : IQueryable
GetAll ( ) : IQueryable
GetById ( int id ) : QuizCategory
GetCategoryOptions ( ) : IEnumerable
GetTop ( int count ) : IQueryable
Save ( ) : void

Method Details

CategoriesService() public method

public CategoriesService ( IDbRepository categories, ICacheService cache ) : System.Collections.Generic
categories IDbRepository
cache ICacheService
return System.Collections.Generic

Create() public method

public Create ( QuizCategory category ) : void
category QuizCategory
return void

Delete() public method

public Delete ( int id ) : bool
id int
return bool

FilterByPattern() public method

public FilterByPattern ( string pattern ) : IQueryable
pattern string
return IQueryable

GetAll() public method

public GetAll ( ) : IQueryable
return IQueryable

GetById() public method

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

GetCategoryOptions() public method

public GetCategoryOptions ( ) : IEnumerable
return IEnumerable

GetTop() public method

public GetTop ( int count ) : IQueryable
count int
return IQueryable

Save() public method

public Save ( ) : void
return void