// GET: Admin/BadgeBank public ActionResult BadgeBank() { var service = new GstService(SystemContext.GstConnectionString); var bb = service.ReadAllBadge(); return(View(bb)); }
// 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()); }
// 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)); }