Esempio n. 1
0
        public IEnumerable <ApplicationGetDto> Handle(GetApplicationsContainedSubstring query)
        {
            query.ThrowIfNull(GetType().Name);
            var applications = IsEmpty(query.SiteName)
                ? _applicationFacade.GetApplications(query.SubString)
                : GetSiteApplications(query.SubString, query.SiteName);

            var applicationsDto = _mapper.Map <IEnumerable <ApplicationGetDto> >(applications);

            return(applicationsDto);
        }