public AspirantSelectLists(Aspirant aspirant, AspiranturaContext context) { Statuses = Helper.GetStatuses(); Studyforms = Helper.GetStudyForms(); Specialities = Helper.GetSpecialities(context); Departments = Helper.GetDepartments(context); Prepods = Helper.GetPrepods(context); if (aspirant != null) { selectedStatus = Statuses.FirstOrDefault(k => k.Value == (int)aspirant.StatusType); selectedStudyform = Studyforms.FirstOrDefault(k => k.Value == (int)aspirant.StudyForm); selectedSpeciality = Specialities.FirstOrDefault(k => k.Value == aspirant.SpecialityId); // возможно нужна проверка на null selectedDepartment = Departments.FirstOrDefault(k => k.Value == aspirant.DepartmentId); selectedPrepod = Prepods.FirstOrDefault(k => k.Value == aspirant.PrepodId); } }
public PrepodsController(AspiranturaContext context) { _context = context; }
public HomeController(AspiranturaContext context) { _context = context; }
public OrdersController(AspiranturaContext context) { _context = context; }
public AspirantsCustomController(AspiranturaContext context) { _context = context; }
public DepartmentsController(AspiranturaContext context) { _context = context; }
public SpecialitiesController(AspiranturaContext context) { _context = context; }
public FacultiesController(AspiranturaContext context) { _context = context; }