// GET: Cities public ActionResult Index(int?page) { string role = new Business.AccountBusiness().currentMember(); if (role == "U" || role == "A") { return(RedirectToAction("Login", "Account")); } int pageSize = 10; int pageNumber = (page ?? 1); var cities = webApi.GetCities().ToPagedList(pageNumber, pageSize); return(View(cities)); }