Interface IUserRoleService
public interface IUserRoleService
Methods
AddUserRoleAsync(UserRole)
Save a new UserRole
Task<UserRole> AddUserRoleAsync(UserRole userRole)
Parameters
userRole
UserRole
Returns
- Task<UserRole>
DeleteUserRoleAsync(int)
Delete a UserRole in the database
Task DeleteUserRoleAsync(int userRoleId)
Parameters
userRoleId
int
Returns
- Task
GetUserRoleAsync(int)
Get one specific UserRole
Task<UserRole> GetUserRoleAsync(int userRoleId)
Parameters
userRoleId
intID-reference to a UserRole
Returns
- Task<UserRole>
GetUserRolesAsync(int)
Task<List<UserRole>> GetUserRolesAsync(int siteId)
Parameters
siteId
intID-reference to a Site
Returns
- Task<List<UserRole>>
GetUserRolesAsync(int, int)
Task<List<UserRole>> GetUserRolesAsync(int siteId, int userId)
Parameters
Returns
- Task<List<UserRole>>
GetUserRolesAsync(int, int, string)
Task<List<UserRole>> GetUserRolesAsync(int siteId, int userId, string roleName)
Parameters
siteId
intID-reference to a Site
userId
intID-reference to a User
roleName
stringName reference a Role
Returns
- Task<List<UserRole>>
GetUserRolesAsync(int, string)
Task<List<UserRole>> GetUserRolesAsync(int siteId, string roleName)
Parameters
Returns
- Task<List<UserRole>>
UpdateUserRoleAsync(UserRole)
Update a UserRole in the database
Task<UserRole> UpdateUserRoleAsync(UserRole userRole)
Parameters
userRole
UserRole
Returns
- Task<UserRole>