BistroDriveWebApp.Controllers.HomeController.Users C# (CSharp) Method

Users() public method

public Users ( int page, string search = "", int CityId, string travel = null ) : System.Web.Mvc.ActionResult
page int
search string
CityId int
travel string
return System.Web.Mvc.ActionResult
        public ActionResult Users(int page = 0, string search = "", int CityId = 0, string travel = null)
        {
            if (page < 0)
            {
                page = 0;
            }
            int usercount = 0;
            var users = DataManager.User.GetAllUser(page, PageSize, ref usercount, search, CityId, travel != null);
            var cities = DataManager.Geolocation.GetAllCities();
            UserListViewModel model = new UserListViewModel
            {
                CityId = CityId,
                Page = page,
                PageCount = usercount/PageSize,
                Travel = travel,
                City_List = cities,
                UserList = users,
                Search = search
            };
            return View(model);
        }