12 lines
469 B
C#
12 lines
469 B
C#
using PnvPanel.Application.Common.Interfaces;
|
|
using PnvPanel.Application.Common.Messaging;
|
|
using PnvPanel.Application.Common.Models;
|
|
|
|
namespace PnvPanel.Application.Admin.Roles;
|
|
|
|
public sealed class DeleteRoleCommandHandler(IRoleService roleService) : ICommandHandler<DeleteRoleCommand, Result>
|
|
{
|
|
public Task<Result> Handle(DeleteRoleCommand command, CancellationToken cancellationToken)
|
|
=> roleService.DeleteRoleAsync(command.RoleId, cancellationToken);
|
|
}
|