コード例 #1
0
        public ItemsLinkContainer <ContactViewModel> Get()
        {
            var contact = _contactAppService.GetAll().ToList();

            contact.ForEach(x => x.AddRangeLink(_contactEnricher.CreateLinks(Method.Get, x)));
            var result = new ItemsLinkContainer <ContactViewModel>()
            {
                Items = contact
            };

            result.AddRangeLink(_contactEnricher.CreateLinks(Method.GetAll));
            return(result);
        }
コード例 #2
0
ファイル: MenuController.cs プロジェクト: OpenId3as/nog-api
        public ItemsLinkContainer <MenuViewModel> Get()
        {
            var menus = _menuAppService.GetAll().ToList();

            menus.ForEach(x => x.AddRangeLink(_menuEnricher.CreateLinks(Method.Get, x)));
            var result = new ItemsLinkContainer <MenuViewModel>()
            {
                Items = menus
            };

            result.AddRangeLink(_menuEnricher.CreateLinks(Method.GetAll));
            return(result);
        }
コード例 #3
0
        public ItemsLinkContainer <VolunteerViewModel> Get()
        {
            var volunteer = _volunteerAppService.GetAll().ToList();

            volunteer.ForEach(x => x.AddRangeLink(_volunteerEnricher.CreateLinks(Method.Get, x)));
            var result = new ItemsLinkContainer <VolunteerViewModel>()
            {
                Items = volunteer
            };

            result.AddRangeLink(_volunteerEnricher.CreateLinks(Method.GetAll));
            return(result);
        }
コード例 #4
0
        public ItemsLinkContainer <HowToHelpViewModel> Get()
        {
            var obj = _howToHelpAppService.GetAll().ToList();

            obj.ForEach(x => x.AddRangeLink(_howToHelpEnricher.CreateLinks(Method.Get, x)));
            var result = new ItemsLinkContainer <HowToHelpViewModel>()
            {
                Items = obj
            };

            result.AddRangeLink(_howToHelpEnricher.CreateLinks(Method.GetAll));
            return(result);
        }
コード例 #5
0
        public ItemsLinkContainer <CollaboratorViewModel> Get()
        {
            var collaborators = _collaboratorPageAppService.GetAll().ToList();

            collaborators.ForEach(x => x.AddRangeLink(_collaboratorPageEnricher.CreateLinks(Method.Get, x)));
            var result = new ItemsLinkContainer <CollaboratorViewModel>()
            {
                Items = collaborators
            };

            result.AddRangeLink(_collaboratorPageEnricher.CreateLinks(Method.GetAll));
            return(result);
        }
コード例 #6
0
        public ItemsLinkContainer <LanguageViewModel> Get()
        {
            var languages = _languageAppService.GetAll().ToList();

            languages.ForEach(x => x.AddRangeLink(_languageEnricher.CreateLinks(Method.Get, x)));
            var result = new ItemsLinkContainer <LanguageViewModel>()
            {
                Items = languages
            };

            result.AddRangeLink(_languageEnricher.CreateLinks(Method.GetAll));
            return(result);
        }
コード例 #7
0
        public ItemsLinkContainer <InstitutionViewModel> Get()
        {
            var institutions = _institutionAppService.GetAll().ToList();

            institutions.ForEach(x => x.AddRangeLink(_institutionEnricher.CreateLinks(Method.Get, x)));
            var result = new ItemsLinkContainer <InstitutionViewModel>()
            {
                Items = institutions
            };

            result.AddRangeLink(_institutionEnricher.CreateLinks(Method.GetAll));
            return(result);
        }
コード例 #8
0
        public ItemsLinkContainer <WhoAreWeViewModel> Get()
        {
            var whoAreWe = _whoAreWeAppService.GetAll().ToList();

            whoAreWe.ForEach(x => x.AddRangeLink(_whoAreWeEnricher.CreateLinks(Method.Get, x)));
            var result = new ItemsLinkContainer <WhoAreWeViewModel>()
            {
                Items = whoAreWe
            };

            result.AddRangeLink(_whoAreWeEnricher.CreateLinks(Method.GetAll));
            return(result);
        }