C# Класс HBS.Data.Concrete.SecurityRepository

Наследование: BaseRepository, ISecurityRepository
Показать файл Открыть проект

Открытые методы

Метод Описание
AddRole ( Role role ) : int
AddUser ( UserProfile user ) : int
AddUserInRole ( int userId, int roleId ) : bool
GetAllRoles ( ) : List
GetAllUsers ( ) : IQueryable
GetRole ( int roleId ) : Role
GetRoles ( int companyId, string roleName ) : List
GetUser ( int userId ) : UserProfile
GetUser ( string userName ) : UserProfile
GetUserRoles ( int userId ) : List
GetUsers ( int companyId ) : List
GetUsers ( int companyId, string searchText ) : List
IsUserInRole ( int userId, int roleId ) : bool
IsUserNameExists ( int companyId, string searchText ) : bool
RemoveRole ( int roleId ) : bool
RemoveUserFromRole ( int roleId, int userId ) : bool
UpdateRole ( Role role ) : bool
UpdateUser ( UserProfile user ) : bool

Описание методов

AddRole() публичный Метод

public AddRole ( Role role ) : int
role HBS.Entities.Role
Результат int

AddUser() публичный Метод

public AddUser ( UserProfile user ) : int
user HBS.Entities.UserProfile
Результат int

AddUserInRole() публичный Метод

public AddUserInRole ( int userId, int roleId ) : bool
userId int
roleId int
Результат bool

GetAllRoles() публичный Метод

public GetAllRoles ( ) : List
Результат List

GetAllUsers() публичный Метод

public GetAllUsers ( ) : IQueryable
Результат IQueryable

GetRole() публичный Метод

public GetRole ( int roleId ) : Role
roleId int
Результат HBS.Entities.Role

GetRoles() публичный Метод

public GetRoles ( int companyId, string roleName ) : List
companyId int
roleName string
Результат List

GetUser() публичный Метод

public GetUser ( int userId ) : UserProfile
userId int
Результат HBS.Entities.UserProfile

GetUser() публичный Метод

public GetUser ( string userName ) : UserProfile
userName string
Результат HBS.Entities.UserProfile

GetUserRoles() публичный Метод

public GetUserRoles ( int userId ) : List
userId int
Результат List

GetUsers() публичный Метод

public GetUsers ( int companyId ) : List
companyId int
Результат List

GetUsers() публичный Метод

public GetUsers ( int companyId, string searchText ) : List
companyId int
searchText string
Результат List

IsUserInRole() публичный Метод

public IsUserInRole ( int userId, int roleId ) : bool
userId int
roleId int
Результат bool

IsUserNameExists() публичный Метод

public IsUserNameExists ( int companyId, string searchText ) : bool
companyId int
searchText string
Результат bool

RemoveRole() публичный Метод

public RemoveRole ( int roleId ) : bool
roleId int
Результат bool

RemoveUserFromRole() публичный Метод

public RemoveUserFromRole ( int roleId, int userId ) : bool
roleId int
userId int
Результат bool

UpdateRole() публичный Метод

public UpdateRole ( Role role ) : bool
role Role
Результат bool

UpdateUser() публичный Метод

public UpdateUser ( UserProfile user ) : bool
user UserProfile
Результат bool