public async Task <IActionResult> OnGetAsync(string id) { if (id == null) { return(NotFound()); } Supervisors = await _context.Supervisors.FirstOrDefaultAsync(m => m.Id == Int32.Parse(id)); if (Supervisors == 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; }