// DETAILS public IActionResult Details(int id) { var salaryDetails = _salary.GetAllSalaries().FirstOrDefault(s => s.Id == id); if (salaryDetails != null) { return(View(salaryDetails)); } return(RedirectToAction("Index")); }
// DETAILS public IActionResult Details(int id) { var salaryDetails = _salary.GetAllSalaries().FirstOrDefault(s => s.Id == id); if (salaryDetails != null) { return(View(salaryDetails)); } return(RedirectToAction("Index")); }