public IActionResult Archive(int id) { Broker broker = brokerRepo.GetBrokerByID(id); if (broker != null) { brokerRepo.ChangeStatus(broker, "Archived"); return(RedirectToAction("Index")); } else { ModelState.AddModelError("", "User Not Found"); } return(RedirectToAction("Index", brokerRepo.GetAllBrokers().ToList())); }