-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathIRoleService.cs
25 lines (23 loc) · 908 Bytes
/
IRoleService.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using MVCCaching;
using System.Threading.Tasks;
namespace Generic.Services.Interfaces
{
public interface IRoleService : IService
{
/// <summary>
/// Sets the user's given role
/// </summary>
/// <param name="userID">The User ID</param>
/// <param name="roleName">The Role Name</param>
/// <param name="siteName">The Site name</param>
/// <param name="roleToggle">True if they should be added to the role, false if removed</param>
Task SetUserRole(int userID, string roleName, string siteName, bool roleToggle);
/// <summary>
/// Creates the role if it doesn't already exist.
/// </summary>
/// <param name="roleName">Role Name</param>
/// <param name="siteName">Site Name</param>
/// <returns></returns>
Task CreateRoleIfNotExisting(string roleName, string siteName);
}
}