public ActionResult Edit(int id) { StudentDetailsVM model = new StudentDetailsVM(); model.countries = studentBL.GetAllCountries(); Student std = studentBL.GetStudentByID(id); model.CountryID = std.CountryID; model.FullName = std.FullName; model.StudentID = std.StudentID; model.Picture = std.Picture; model.RegisterationDate = std.RegisterationDate; return(View(model)); }