public ActionResult DetailEdu(int id) { DBmanager manager = new DBmanager(); Educations education = manager.GetByEdu(id); return(View(education)); }
public ActionResult EditEducations(int id) { DBmanager dBmanager = new DBmanager(); Educations education = dBmanager.GetByEdu(id); DBmanager S = new DBmanager(); List <Supervisors> Supervisors = S.GetSupervisors(); ViewBag.supervisor = Supervisors; DBmanager dB = new DBmanager(); List <Departments> departments = dB.GetDepartments(); ViewBag.department = departments; return(View(education)); }
public ActionResult Detail(int id) { DBmanager dBmanager = new DBmanager(); BasicInformation basicInformation = dBmanager.GetByID(id); DBmanager manager = new DBmanager(); Educations education = manager.GetByEdu(id); ViewBag.education = education; DBmanager S = new DBmanager(); List <Supervisors> Supervisors = S.GetSupervisors(); ViewBag.supervisor = Supervisors; DBmanager dB = new DBmanager(); List <Departments> departments = dB.GetDepartments(); ViewBag.department = departments; return(View(basicInformation)); }