22 lines
474 B
C#
22 lines
474 B
C#
using Oqtane.Models;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Oqtane.Services
|
|
{
|
|
public interface IRoleService
|
|
{
|
|
Task<List<Role>> GetRolesAsync(int siteId);
|
|
|
|
Task<List<Role>> GetRolesAsync(int siteId, bool includeGlobalRoles);
|
|
|
|
Task<Role> GetRoleAsync(int roleId);
|
|
|
|
Task<Role> AddRoleAsync(Role role);
|
|
|
|
Task<Role> UpdateRoleAsync(Role role);
|
|
|
|
Task DeleteRoleAsync(int roleId);
|
|
}
|
|
}
|