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)); }
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)); }
public IViewComponentResult Invoke() { UI_Footer uI_Footer = uI_FooterService.Get(x => x.IsActive == true && x.WebSiteid == CurrentWebsite.id, CurrentLanguage.id); return(View(uI_Footer)); }