public async Task <IActionResult> OnGetAsync(int?id) { if (id == null) { return(NotFound()); } FSApp = await _context.FSApp.FirstOrDefaultAsync(m => m.AppID == id); if (FSApp == null) { return(NotFound()); } return(Page()); }
public async Task <IActionResult> OnPostAsync(int?id) { if (id == null) { return(NotFound()); } FSApp = await _context.FSApp.FindAsync(id); if (FSApp != null) { _context.FSApp.Remove(FSApp); await _context.SaveChangesAsync(); } return(RedirectToPage("./Index")); }