Пример #1
0
        public async Task <Unit> Handle(AddUserRoleCommand command, CancellationToken cancellationToken)
        {
            await _userManagerService.AddRole(command.UserId, command.RoleName);

            await _dataContext.SaveChangesAsync(cancellationToken);

            return(Unit.Value);
        }