using PnvPanel.Application.Common.Interfaces; using PnvPanel.Application.Common.Messaging; using PnvPanel.Application.Common.Models; namespace PnvPanel.Application.Admin.Roles; public sealed class CreateRoleCommandHandler(IRoleService roleService) : ICommandHandler> { public Task> Handle( CreateRoleCommand command, CancellationToken cancellationToken ) => roleService.CreateRoleAsync( command.Name, command.MaxConfigs, command.MaxIpLimit, command.BillingEnabled, cancellationToken ); }