public ActionResult Index(string filter = "active") { var list = _readService.GetAllActive(); switch (filter) { case "all": list = _readService.GetAll(); break; case "inactive": list = _readService.GetAllInactive(); break; } return(View(list)); }
public ActionResult Index(string filter = "active") { var list = _readService.GetAllActive(); switch (filter) { case "all": list = _readService.GetAll(); break; case "inactive": list = _readService.GetAllInactive(); break; } return(View(list)); }