11 lines
493 B
C#
11 lines
493 B
C#
using Imprink.Domain.Entities.Users;
|
|
|
|
namespace Imprink.Domain.Repositories;
|
|
|
|
public interface IRoleRepository
|
|
{
|
|
Task<IEnumerable<Role>> GetAllRolesAsync(CancellationToken cancellationToken = default);
|
|
Task<Role?> GetRoleByIdAsync(Guid roleId, CancellationToken cancellationToken = default);
|
|
Task<Role?> GetRoleByNameAsync(string roleName, CancellationToken cancellationToken = default);
|
|
Task<bool> RoleExistsAsync(Guid roleId, CancellationToken cancellationToken = default);
|
|
} |