Пример #1
0
        // GET: Admin/BadgeBank
        public ActionResult BadgeBank()
        {
            var service = new GstService(SystemContext.GstConnectionString);

            var bb = service.ReadAllBadge();

            return(View(bb));
        }
Пример #2
0
        // GET: Tree/GiveBadge
        public ActionResult GiveBadge()
        {
            var service = new GstService(SystemContext.GstConnectionString);

            var bb = new BadgeBank {
                Badges = service.ReadAllBadge()
            };

            var pvm = service.ReadAllPerson();

            ViewBag.Badges = bb;
            ViewBag.People = pvm;

            return(View());
        }
Пример #3
0
        // GET: Admin/BadgeBankType
        public ActionResult BadgeBankType(string type)
        {
            var service = new GstService(SystemContext.GstConnectionString);

            List <Badge> bb;

            if (type == "All")
            {
                bb = service.ReadAllBadge();
            }
            else
            {
                bb = service.ReadAllBadgeByType(type);
            }

            return(View("BadgeBankSearch", bb));
        }