示例#1
0
        private IEnumerable <CampaignEvent> GetEvent()
        {
            var list        = _campaignEventService.GetAllEvents();
            var currentlist = list.Where(c => c.CampaignDate == DateTime.Now).ToList();

            return(list);
        }
示例#2
0
        public ActionResult <CampaignEvent> Index()
        {
            var list = _campaignEventService.GetAllEvents();

            return(View(list));
        }