Метод | Описание | |
---|---|---|
CanCurrentUserManageTeams ( ) : bool | ||
CreateUserAndAccount ( string email, string password, System.DateTime created ) : void | ||
GetCurrentUser ( ) : User | ||
GetPowerUserRoleForTeam ( Team team ) : string | ||
GetRolesForCurrentUser ( ) : IEnumerable |
||
GetUser ( string userName ) : User | ||
IsCurrentUserAdministrator ( ) : bool | ||
IsCurrentUserAdministratorOrPowerUser ( ) : bool | ||
IsCurrentUserAdministratorOrPowerUser ( int teamId ) : bool | ||
IsCurrentUserPowerUser ( ) : bool | ||
IsLoggedIn ( ) : bool | ||
ResetPassword ( string email, string urlAddress ) : void | ||
SecurityService ( IEventBookingContext context, IEmailService emailService ) : System | ||
SetPassword ( string token, string password ) : void | ||
SignIn ( string userName, string password ) : bool | ||
SignOff ( ) : void | ||
ToogleAdministrator ( int userId ) : bool | ||
ToogleTeamPowerUser ( int userId, int teamId ) : bool |
Метод | Описание | |
---|---|---|
GetTeamOrThrow ( int teamId ) : Team | ||
GetUserOrThrow ( int userId ) : User |
public CanCurrentUserManageTeams ( ) : bool | ||
Результат | bool |
public CreateUserAndAccount ( string email, string password, System.DateTime created ) : void | ||
string | ||
password | string | |
created | System.DateTime | |
Результат | void |
public GetPowerUserRoleForTeam ( Team team ) : string | ||
team | Team | |
Результат | string |
public GetRolesForCurrentUser ( ) : IEnumerable |
||
Результат | IEnumerable |
public IsCurrentUserAdministrator ( ) : bool | ||
Результат | bool |
public IsCurrentUserAdministratorOrPowerUser ( ) : bool | ||
Результат | bool |
public IsCurrentUserAdministratorOrPowerUser ( int teamId ) : bool | ||
teamId | int | |
Результат | bool |
public ResetPassword ( string email, string urlAddress ) : void | ||
string | ||
urlAddress | string | |
Результат | void |
public SecurityService ( IEventBookingContext context, IEmailService emailService ) : System | ||
context | IEventBookingContext | |
emailService | IEmailService | |
Результат | System |
public SetPassword ( string token, string password ) : void | ||
token | string | |
password | string | |
Результат | void |
public SignIn ( string userName, string password ) : bool | ||
userName | string | |
password | string | |
Результат | bool |
public ToogleAdministrator ( int userId ) : bool | ||
userId | int | |
Результат | bool |
public ToogleTeamPowerUser ( int userId, int teamId ) : bool | ||
userId | int | |
teamId | int | |
Результат | bool |