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