public ViewResult GuarantorDetails() { var model = _guarantorRepository.GetGuarantors(); AllModelsViewModel allModelsViewModel = new AllModelsViewModel { AllGuarantors = model.ToList() }; return(View(allModelsViewModel)); }
public ViewResult StudentInfo(Guid?id) { Student student = _studentRepository.GetStudent(id.Value); if (student == null) { Response.StatusCode = 404; return(View("StudentNotFound", id.Value)); } var studentGuarantors = _sgRepo.GetStudentGuarantor(id.Value).ToList(); AllModelsViewModel allModelsViewModel = new AllModelsViewModel { Student = student, GetGuarantors = studentGuarantors, PageTitle = "Student Details" }; return(View(allModelsViewModel)); }