private void mView_Add(object sender, EventArgs e) { var dto = new DtoPayRoll { AuthorId = mView.AuthorId, Salary = mView.Salary }; mView.Message = _payRollDm.Add(dto); }
public ActionResult Create() { return(View(pdm.Add())); }
public IActionResult OnGet() { PayRoll = _payrollDm.Add(); return(Page()); }