public async Task <IActionResult> OnPostAsync(int?id) { if (id == null) { return(NotFound()); } await _billPayService.DeleteByIdAsync((int)id); return(RedirectToPage("./Index")); }