public ActionResult Index(string slug) { CareersViewModel viewModel = new CareersViewModel(); if (string.IsNullOrEmpty(slug)) { viewModel.Jobs = _jobRepo.GetAllPublic(); viewModel.JobList = JobList(); viewModel.JobApp = new JobApplication() { State = "" }; viewModel.IsApplyView = false; return(View(viewModel)); } return(View("Detail", new BaseViewModel <Job>() { Item = _jobRepo.GetBySlug(slug) })); }