public async Task <IActionResult> OnGetAsync(string id) { if (id == null) { return(NotFound()); } StPrograms = await _context.StPrograms.FirstOrDefaultAsync(m => m.Id == Int32.Parse(id)); if (StPrograms == null) { return(NotFound()); } return(Page()); }
public Theme(DateTime created, string description, int id, bool isExternalStudy, bool isFullTimeStudy, string name, ResearchType researchType, StProgram stProgram, int stProgramId, Supervisor supervisor, int supervisorId) { Created = created; Description = description; Id = id; IsExternalStudy = isExternalStudy; IsFullTimeStudy = isFullTimeStudy; Name = name; ResearchType = researchType; StProgram = stProgram; StProgramId = stProgramId; Supervisor = supervisor; SupervisorId = supervisorId; }
public async Task <IActionResult> OnGetAsync(string id) { if (id == null) { return(NotFound()); } Themes = await _context.Themes.FirstOrDefaultAsync(m => m.Id == Int32.Parse(id)); Supervisors = await _context.Supervisors.FirstOrDefaultAsync(m => m.Id == Themes.SupervisorId); StPrograms = await _context.StPrograms.FirstOrDefaultAsync(m => m.Id == Themes.StProgramId); if (Themes == null) { return(NotFound()); } return(Page()); }