public ActionResult _MarketJobStatus() { var Cancelled = _marketServices.GetAllValidMarketJobs(CurrentTenantId, MarketJobStatusEnum.Cancelled).Count(); int Declined = _marketServices.GetAllValidMarketJobs(CurrentTenantId, MarketJobStatusEnum.Declined).Count(); int Completed = _marketServices.GetAllValidMarketJobs(CurrentTenantId, MarketJobStatusEnum.Completed).Count(); int Unallocated = _marketServices.GetAllValidMarketJobs(CurrentTenantId, MarketJobStatusEnum.UnAllocated).Count(); ViewBag.Cancelled = Cancelled; ViewBag.Declined = Declined; ViewBag.Completed = Completed; ViewBag.Unallocated = Unallocated; return(PartialView("~/Views/MarketJob/_MarketJobStatus.cshtml")); }