public ViewResult assignStudentCompany(int id) { List <Student> studentlist = _student.GetAllStudent().ToList(); employmentViewModel employmentView = new employmentViewModel() { studentlist = studentlist, compy_id = id }; return(View(employmentView)); }
public IActionResult addStudentBatch(int id) { List <Student> studentlist = _studentRepo.GetAllStudent().ToList(); //List<Batch> batches = _batchRepo.GetAllBatch().ToList(); studentBatchViewModel studentBatchViewModel = new studentBatchViewModel() { studentList = studentlist, //batchList = batches, Id = id }; return(View(studentBatchViewModel)); }
public ViewResult Dashboard() { var model = _student.GetAllStudent(); return(View(model)); }