C# Class FailureTroubleshooting.Data.Repositories.IdentityRepository

Inheritance: IIdentityRepository
显示文件 Open project: Zjazure/FailureTroubleshooting

Public Methods

Method Description
GetAllRoles ( ) : IQueryable
GetAllUsers ( ) : IQueryable
GetUserByIdAsync ( int userId ) : Task
SaveUserAsync ( User user, IList newRoles ) : System.Threading.Tasks.Task

Private Methods

Method Description
IdentityRepository ( IAppDbContext dbContext ) : FailureTroubleshooting.Data.Entities

Method Details

GetAllRoles() public method

public GetAllRoles ( ) : IQueryable
return IQueryable

GetAllUsers() public method

public GetAllUsers ( ) : IQueryable
return IQueryable

GetUserByIdAsync() public method

public GetUserByIdAsync ( int userId ) : Task
userId int
return Task

SaveUserAsync() public method

public SaveUserAsync ( User user, IList newRoles ) : System.Threading.Tasks.Task
user User
newRoles IList
return System.Threading.Tasks.Task