public IActionResult Create(Salary salary) { if (ModelState.IsValid) { _salary.AddSalary(salary); return(RedirectToAction("Index")); } return(View(salary)); }
public IActionResult Create(Salary salary) { if (ModelState.IsValid) { _salary.AddSalary(salary); return(RedirectToAction("Index")); } return(View(salary)); }