// GET: Admin/Home public ActionResult Index() { Session["Student"] = studentService.GetActive().Count().ToString(); Session["Teacher"] = teacherService.GetActive().Count().ToString(); Session["Classroom"] = classroomService.GetActive().Count().ToString(); Session["Section"] = sectionService.GetActive().Count().ToString(); return(View()); }
// GET: Admin/Student/Edit/5 public ActionResult Edit(int id) { if (id != 0) { ViewBag.SectionId = new SelectList(sectionService.GetActive(), "ID", "SectionName"); ViewBag.ClassroomId = new SelectList(classroomService.GetActive(), "ID", "ClassroomName"); return(View(studentService.GetById(id))); } return(View()); }
// GET: Admin/Section public ActionResult Index() { return(View(sectionService.GetActive())); }