Esempio n. 1
0
        public IActionResult FooterAdd()
        {
            UI_Footer footer;

            footer = uI_FooterService.Get(x => x.IsActive == true && x.WebSiteid == CurrentWebsite.id, CurrentLanguage.id);
            if (footer == null)
            {
                footer = new UI_Footer();
            }

            return(View(footer));
        }
Esempio n. 2
0
        public async Task <IViewComponentResult> InvokeAsync()
        {
            UI_Footer uI_Footer = await cacheService.GetAsync($"{CacheInfo.Footer}-{CurrentWebsite.id}-{CurrentLanguage.id}", () =>
                                                              uI_FooterService.Get(x => x.IsActive == true && x.WebSiteid == CurrentWebsite.id, CurrentLanguage.id)
                                                              );

            return(View(uI_Footer));
        }
Esempio n. 3
0
        public IViewComponentResult Invoke()
        {
            UI_Footer uI_Footer = uI_FooterService.Get(x => x.IsActive == true && x.WebSiteid == CurrentWebsite.id, CurrentLanguage.id);

            return(View(uI_Footer));
        }