first commit

This commit is contained in:
Dhananjaya99
2026-09-28 11:51:12 +05:30
commit 73056da0d5
57 changed files with 7654 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
using AuthHex.Models;
namespace AuthHex.Interfaces
{
public interface IRoleRepository
{
Task<Role> AddRoleAsync(Role role, CancellationToken ct = default);
Task<Role?> GetByIdAsync(Guid roleId, CancellationToken ct = default);
Task<Role?> GetByCodeAsync(string code, CancellationToken ct = default);
Task<List<Role>> ListAsync(CancellationToken ct = default);
Task<bool> IsAssignedToAnyUserAsync(Guid roleId, CancellationToken ct = default);
Task DeleteRoleAsync(Role role, CancellationToken ct = default);
}
}