public IActionResult Lock(int id) { var entity = vacancyManager.Get(id); if (entity != null) { entity.IsActive = !entity.IsActive; vacancyManager.Update(entity); } return(RedirectToAction("Index", "Vacancy")); }
public IActionResult Lock(int id) { var entity = vacancyManager.Get(id); if (entity != null) { entity.IsActive = !entity.IsActive; vacancyManager.Update(entity); } return(RedirectToAction("Index", "Vacancy")); }