using Oqtane.Models; using System.Collections.Generic; using System.Threading.Tasks; namespace Oqtane.Services { /// /// Service to manage s on a /// public interface IRoleService { /// /// Get all s of this . /// /// Will exclude global roles which are for all sites. To get those as well, use the overload /// /// ID-reference of a /// Task> GetRolesAsync(int siteId); /// /// Get roles of the and optionally include global Roles. /// /// ID-reference to a /// True if it should also include global roles. False will return the same data as just calling /// Task> GetRolesAsync(int siteId, bool includeGlobalRoles); /// /// Get one specific /// /// ID-reference of a /// Task GetRoleAsync(int roleId); /// /// Add / save a new to the database. /// /// /// Task AddRoleAsync(Role role); /// /// Update a in the database. /// /// /// Task UpdateRoleAsync(Role role); /// /// Delete / mark-as-deleted a in the database. /// /// ID-reference of a /// Task DeleteRoleAsync(int roleId); } }