public async Task <bool> IsIdExistAsync(Guid collectionId, Guid userId) { if (userId == Guid.Empty) { throw new AppException($"Поле {nameof(userId)} не указано"); } if (collectionId == Guid.Empty) { throw new AppException($"Поле {nameof(userId)} не указано"); } return(await repository.FindIdAsync(collectionId, userId)); }