initial commit from an older template
This commit is contained in:
14
Services/Roles/IRolesService.cs
Executable file
14
Services/Roles/IRolesService.cs
Executable file
@@ -0,0 +1,14 @@
|
||||
using GamificationService.Models.Database;
|
||||
|
||||
namespace GamificationService.Services.Roles;
|
||||
|
||||
public interface IRolesService
|
||||
{
|
||||
Task<ApplicationRole> CreateRoleAsync(string roleName, string description);
|
||||
Task<bool> UpdateRoleAsync(long roleId, string newRoleName, string newDescription);
|
||||
Task<bool> DeleteRoleAsync(long roleId);
|
||||
Task<bool> AddRightToRoleAsync(long roleId, long rightId);
|
||||
Task<bool> RemoveRightFromRoleAsync(long roleId, long rightId);
|
||||
Task<ApplicationRole> GetRoleByIdAsync(long roleId);
|
||||
Task<(List<ApplicationRole> Roles, int TotalCount)> GetAllRolesAsync(int pageNumber = 1, int pageSize = 10);
|
||||
}
|
||||
Reference in New Issue
Block a user