public IActionResult Index(int status = 3) { var active = status == 1; var model = _jobServices.GetList().Where(t => t.IsActive == active || status == 3).ToList(); ViewBag.selecteStatus = status; return View(model); }
public IActionResult GetActiveJobs() { var jobList = _jobServices.GetList().Where(t => t.IsActive); return(Ok(jobList)); }