| 12345678910111213 |
- using Application.Abstractions.Identity;
- using MediatR;
- namespace Application.Features.Director.CreateRole
- {
- public sealed class Handler(IIdentityRoleWriter roleWriter) : IRequestHandler<CreateRoleCommand>
- {
- public async Task Handle(CreateRoleCommand request, CancellationToken ct)
- {
- await roleWriter.CreateRoleAsync(request.RoleName ?? string.Empty, ct);
- }
- }
- }
|