Beispiel #1
0
        public async Task <IViewComponentResult> InvokeAsync()
        {
            var footerModel = new FooterModel();

            footerModel.Infos = await Task.Run(() => _infoService.GetAll(Data.Enum.InfoType.InfoCompay));

            footerModel.PageContents = _pageContentService.GetAll(true, Data.Enum.Languages.Vi);
            return(View("_Footer", footerModel));
        }
Beispiel #2
0
        public async Task <IViewComponentResult> InvokeAsync()
        {
            var model = new HeaderModel();

            model.CatalogFunctions = await Task.Run(() => _catalogFunctionService.GetAll(Data.Enum.Languages.Vi, true));

            model.CatalogSectors = _catalogSectorService.GetAll(Data.Enum.Languages.Vi, true);
            model.CategoryBlogs  = _categoryBlogService.GetAll(Data.Enum.Languages.Vi);
            model.PageContents   = _pageContentService.GetAll(false, Data.Enum.Languages.Vi);
            return(View("_Header", model));
        }
        public IActionResult Get(string filter = "")
        {
            var model = _pageContentService.GetAll(null);

            return(Ok(model));
        }