Пример #1
0
        public ActionResult DetailEdu(int id)
        {
            DBmanager  manager   = new DBmanager();
            Educations education = manager.GetByEdu(id);

            return(View(education));
        }
Пример #2
0
        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));
        }
Пример #3
0
        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));
        }