Example #1
0
        public async Task <IActionResult> Index()
        {
            var page = new PageViewModel();

            page.BaseUrl      = BaseUrl;
            page.PageContants = await PageService.GetPageContents(new Guid("06174296-86E0-41B6-A96F-916BE0F165F1"), 107);

            page.PageBanners = await PageService.GetPageBanners(new Guid("06174296-86E0-41B6-A96F-916BE0F165F1"), 107);

            return(View(page));
        }
Example #2
0
        //TODO: przenieść do oddzielnego kontrolera
        public async Task <ViewResult> PageContents()
        {
            List <PageContent> pageContents = await _pageContentSrv.GetPageContents();

            List <PageContentModel> model = _mapper.Map <List <PageContentModel> >(pageContents);

            return(View(model));
        }