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