C# Class QuizProjectMvc.Services.Data.UsersService

Inheritance: IUsersService
Mostra file Open project: kidroca/project-quiz-mvc

Public Methods

Method Description
AllUsers ( ) : IQueryable
ById ( string id ) : User
GetMaxCreatedQuizzesCount ( ) : int
GetPage ( Pager pager ) : IQueryable
GetTotalPages ( int pageSize ) : int
Update ( BasicAccountInfoViewModel model, string userId ) : Microsoft.AspNet.Identity.IdentityResult
UsersService ( UserManager manager, ICacheService cache ) : System

Private Methods

Method Description
UpdateUserCommonProperties ( User user, BasicAccountInfoViewModel model ) : void

Method Details

AllUsers() public method

public AllUsers ( ) : IQueryable
return IQueryable

ById() public method

public ById ( string id ) : User
id string
return User

GetMaxCreatedQuizzesCount() public method

public GetMaxCreatedQuizzesCount ( ) : int
return int

GetPage() public method

public GetPage ( Pager pager ) : IQueryable
pager Pager
return IQueryable

GetTotalPages() public method

public GetTotalPages ( int pageSize ) : int
pageSize int
return int

Update() public method

public Update ( BasicAccountInfoViewModel model, string userId ) : Microsoft.AspNet.Identity.IdentityResult
model BasicAccountInfoViewModel
userId string
return Microsoft.AspNet.Identity.IdentityResult

UsersService() public method

public UsersService ( UserManager manager, ICacheService cache ) : System
manager UserManager
cache ICacheService
return System