public async Task <IActionResult> OnGetAsync(int?id) { if (id == null) { return(NotFound()); } MegaDesk = await _context.MegaDesk.FirstOrDefaultAsync(m => m.ID == id); if (MegaDesk == null) { return(NotFound()); } return(Page()); }
public async Task <IActionResult> OnPostAsync(int?id) { if (id == null) { return(NotFound()); } MegaDesk = await _context.MegaDesk.FindAsync(id); if (MegaDesk != null) { _context.MegaDesk.Remove(MegaDesk); await _context.SaveChangesAsync(); } return(RedirectToPage("./Index")); }
internal void Show(MegaDesk megaDesk) { throw new NotImplementedException(); }