示例#1
0
        public IActionResult Delete(int id = 0)
        {
            if (id > 0)
            {
                pdm.Delete(id);
            }

            return(RedirectToAction("Index"));
        }
示例#2
0
 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"));
 }