public IActionResult Delete(int id = 0) { if (id > 0) { pdm.Delete(id); } return(RedirectToAction("Index")); }
private void mView_Delete(object sender, EventArgs e) { _payRollDm.Delete(mView.PayrollId); mView.Message = "Payroll deleted."; }
public IActionResult OnGetDelete(int id) { _payrollDm.Delete(id); return(RedirectToPage("Index")); }