public override IReadOnlyCollection <TResultItem> Execute(GetNotionTypesSpecification <TResultItem> specification)
        {
            if (specification == null)
            {
                throw new ArgumentNullException(nameof(specification));
            }

            return(LingProvider.Query <NotionType>().Select(specification.Projection).ToList());
        }
Beispiel #2
0
        public override int Execute([NotNull] GetExpertCountSpecification specification)
        {
            if (specification == null)
            {
                throw new ArgumentNullException(nameof(specification));
            }

            return(LingProvider.Query <Expert>().Count(x => x.SessionOfExperts == specification.SessionOfExperts));
        }