public async Task <IActionResult> OnGetAsync(int?id) { if (id == null) { return(NotFound()); } ProgramareMedic = await _context.ProgramareMedic.FirstOrDefaultAsync(m => m.ID == id); if (ProgramareMedic == null) { return(NotFound()); } ViewData["SpitalID"] = new SelectList(_context.Set <Spital>(), "ID", "NumeSpital"); return(Page()); }
public IActionResult OnGet() { ViewData["SpitalID"] = new SelectList(_context.Set <Spital>(), "ID", "NumeSpital"); return(Page()); }