public ActionResult Addmission(int id)
        {
            RegistrationViewModel model = new RegistrationViewModel();

            if (id > 0)
            {
                model = registerService.GetRegisterInfoById(id);
            }
            model.SessionList  = addmissionService.GetSessionList();
            model.CourseList   = addmissionService.GetCourseList();
            model.IsAddmission = addmissionService.IsAdmissionOfCandidate(id);
            if (TempData["Message"] == null && model.IsAddmission)
            {
                return(RedirectToAction("Index", "Addmission"));
            }
            return(View(model));
        }
Exemple #2
0
 public JsonResult GetSessionList()
 {
     return(Json(addmissionService.GetSessionList(), JsonRequestBehavior.AllowGet));
 }