public IActionResult OnGet(int id) { PayRoll = _payrollDm.Find(id); return(Page()); }
public IActionResult Detail(int id = 0) { return(id == 0 ? null : View(pdm.Find(id))); }