using F9WebAiTest.Application.Dtos.SYS.RBAC.Roles; using F9WebAiTest.Application.Interfaces.Repositories.SYS.RBAC.Roles; using MediatR; namespace F9WebAiTest.Application.CQRS.SYS.RBAC.Roles.Queries; public record GetRoleAllQuery() : IRequest>; public class GetRoleAllQueryHandler(IRoleReadRepository roleReadRepository) : IRequestHandler> { public async Task> Handle(GetRoleAllQuery query, CancellationToken ct) => await roleReadRepository.GetAllAsync(); }