public ActionResult Create(ModuleExamSetViewModel moduleExamSetViewModel) { var organisationId = UserOrganisationId; var personnelId = UserPersonnelId; if (ModelState.IsValid) { moduleExamSetViewModel.ModuleExamSet.OrganisationId = organisationId; moduleExamSetViewModel.ModuleExamSet.CreatedBy = personnelId; moduleExamSetViewModel.ModuleExamSet = NidanBusinessService.CreateModuleExamSet(UserOrganisationId, moduleExamSetViewModel.ModuleExamSet); return(RedirectToAction("Index")); } moduleExamSetViewModel.Subjects = new SelectList(NidanBusinessService.RetrieveSubjects(organisationId, e => true).ToList()); return(View(moduleExamSetViewModel)); }