public IActionResult create(Salary saly) { if (ModelState.IsValid) { Salary salary = _salaryrepository.Add(saly); return(RedirectToAction("Index", new { id = saly.Id })); } return(View()); }