public ActionResult Index(SearchModel search)
        {
            var model = new IndexModel(search)
            {
                People = Database.People
                .OrderBy(x => x.FullName)
                .ToPagedList(search.Page, search.Size)
            };

            return View(model);
        }
 public IndexModel(SearchModel search)
 {
     People = new PagedList<Person>(new List<Person>(), 1, search.Size);
     Search = search;
 }