C# Class QuizProjectMvc.Services.Data.CategoriesService

Inheritance: ICategoriesService
Afficher le fichier Open project: kidroca/project-quiz-mvc

Méthodes publiques

Méthode 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 méthode

public CategoriesService ( IDbRepository categories, ICacheService cache ) : System.Collections.Generic
categories IDbRepository
cache ICacheService
Résultat System.Collections.Generic

Create() public méthode

public Create ( QuizCategory category ) : void
category QuizCategory
Résultat void

Delete() public méthode

public Delete ( int id ) : bool
id int
Résultat bool

FilterByPattern() public méthode

public FilterByPattern ( string pattern ) : IQueryable
pattern string
Résultat IQueryable

GetAll() public méthode

public GetAll ( ) : IQueryable
Résultat IQueryable

GetById() public méthode

public GetById ( int id ) : QuizCategory
id int
Résultat QuizCategory

GetCategoryOptions() public méthode

public GetCategoryOptions ( ) : IEnumerable
Résultat IEnumerable

GetTop() public méthode

public GetTop ( int count ) : IQueryable
count int
Résultat IQueryable

Save() public méthode

public Save ( ) : void
Résultat void