Ejemplo n.º 1
0
        public async Task <IActionResult> OnGetAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            Student = await _context.Student.FirstOrDefaultAsync(m => m.ID == id);

            if (Student == null)
            {
                return(NotFound());
            }
            ViewData["IDFacultate"] = new SelectList(_context.Set <Facultate>(), "ID", "Facultate");
            return(Page());
        }
Ejemplo n.º 2
0
 public IActionResult OnGet()
 {
     ViewData["IDFacultate"] = new SelectList(_context.Set <Facultate>(), "ID", "Facultate");
     return(Page());
 }