public PartialViewResult search_by_state(int?page, string state) { currentPageIndex = page.HasValue ? page.Value - 1 : 0; var ClientBoosters = db.BusinessInfoes.Where(b => b.State.Contains(state) && b.ApprovedStatus == "A" && b.NotifyStatus == 1 && b.isServiceBooster == "Yes") .OrderByDescending(b => b.Recommended_Status) .ThenByDescending(b => b.VerifiedStatus); return(PartialView("_ClientBoosterList", PagingExtensions.ToPagedList(ClientBoosters, currentPageIndex, DefaultPageSize))); }
[AllowAnonymous] //Service Boosters Registered and approved businesses public ActionResult Client_Booster_List(int?page) { currentPageIndex = page.HasValue ? page.Value - 1 : 0; var ClientBoosters = db.BusinessInfoes.Where(cb => cb.isServiceBooster == "Yes" && cb.ApprovedStatus == "A" && cb.NotifyStatus == 1) .OrderByDescending(b => b.Recommended_Status) .ThenByDescending(b => b.VerifiedStatus); return(View(PagingExtensions.ToPagedList(ClientBoosters, currentPageIndex, DefaultPageSize))); }