public IActionResult Edit(int id) { Salary salary = _salary.GetSalaryById(id); if (salary != null) { return(View(salary)); } return(RedirectToAction("Index")); }