コード例 #1
0
        // GET: Organizer
        public ActionResult Index()
        {
            OrganizerService evs      = new OrganizerService();
            var         list          = evs.getFuturEvent();
            List <bool> checkexislist = new List <bool>();

            foreach (var item in list)
            {
                checkexislist.Add(evs.checkpaticipation(item.id, 2));
            }
            ViewBag.listCheckParicipation = checkexislist;
            return(View(list));
        }