using PnvPanel.Application.Common.Interfaces; using PnvPanel.Application.Common.Messaging; using PnvPanel.Application.Common.Models; namespace PnvPanel.Application.Admin.Roles; public sealed class UpdateRoleCommandHandler(IRoleService roleService) : ICommandHandler> { public Task> Handle( UpdateRoleCommand command, CancellationToken cancellationToken ) => roleService.UpdateRoleAsync( command.RoleId, command.MaxIpLimit, command.BillingEnabled, cancellationToken ); }