Interface IAdminCheckDal
Administrative data functionality for checking admin access.
Namespace: CrashCABN.DataAccess
Assembly: CrashCABN.DataAccess.SQL.Abstractions.dll
Syntax
public interface IAdminCheckDal
Methods
View SourceGetTitlesForWhichUserIsAdminAsync(string)
Gets a list of titles for which the user is an admin.
Declaration
IAsyncEnumerable<string> GetTitlesForWhichUserIsAdminAsync(string login)
Parameters
Type | Name | Description |
---|---|---|
string | login | The user to get titles for. |
Returns
Type | Description |
---|---|
IAsyncEnumerable<string> | An async enumeration of title names. |
IsUserTitleAdminAsync(string)
Determines if a user is a title admin.
Declaration
Task<bool> IsUserTitleAdminAsync(string login)
Parameters
Type | Name | Description |
---|---|---|
string | login | The user login to check. |
Returns
Type | Description |
---|---|
Task<bool> | True if the user is a title admin. Otherwise, false. |
IsUserTitleAdminAsync(string, string)
Determines if a user is a title admin.
Declaration
Task<bool> IsUserTitleAdminAsync(string login, string title)
Parameters
Type | Name | Description |
---|---|---|
string | login | The user login to check. |
string | title | A registered title. |
Returns
Type | Description |
---|---|
Task<bool> | True if the user is a title admin. Otherwise, false. |
ListTitleAdminsAsync(string)
Lists the admins for a title.
Declaration
Task<IEnumerable<string>> ListTitleAdminsAsync(string titleName)
Parameters
Type | Name | Description |
---|---|---|
string | titleName | A registered title. |
Returns
Type | Description |
---|---|
Task<IEnumerable<string>> | A list of title admins. |