예제 #1
0
        public IViewComponentResult Invoke()
        {
            List <UI_Notice> notices = new List <UI_Notice>();

            foreach (UI_Notice x in uI_NoticeService.GetMany(x => x.IsActive && x.WebSite == CurrentWebsite, CurrentLanguage.id))
            {
                if (x.StartDate <= DateTime.Now && x.EndDate >= DateTime.Now)
                {
                    notices.Add(x);
                }
            }

            return(View(notices));
        }
예제 #2
0
        public IActionResult DuyuruList()
        {
            List <UI_Notice> data = uI_NoticeService.GetMany(x => x.WebSiteid == CurrentWebsite.id && x.IsActive == true, CurrentLanguage.id).ToList();

            return(View(data));
        }