public async Task <bool> IsNameExistAsync(string collectionName, Guid userId)
        {
            if (userId == Guid.Empty)
            {
                throw new AppException(nameof(userId) + " is required");
            }

            return(await repository.FindNameAsync(collectionName, userId));
        }
Exemple #2
0
        public async Task <bool> IsNameExistAsync(string collectionName, Guid userId)
        {
            if (userId == Guid.Empty)
            {
                throw new AppException($"Поле {nameof(userId)} не указано");
            }

            return(await repository.FindNameAsync(collectionName, userId));
        }