public async Task <IActionResult> EditSalaryInfo(Salary salary) { bool success = await _repo2.EditSalaryInfo(salary); if (success == true) { return(RedirectToAction(nameof(EditSalaryInfo), new { msg = success })); } var data = await _repo2.GetSalaryInfo(); ViewData["salary"] = data; ViewBag.titles = new SelectList(await _repo2.GetTitles(), "JobId", "JobName"); return(View()); }