예제 #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.";
 }
예제 #3
0
 public IActionResult OnGetDelete(int id)
 {
     _payrollDm.Delete(id);
     return(RedirectToPage("Index"));
 }