public ActionResult ShowWithPagination(IEnumerable<Team> teams, Nullable<Boolean> isDescending, Int32 page)
        {
            var count = 5;
            var originalTeams = teams.ToArray();

            IEnumerable<Team> currentTeams = originalTeams;

            if (isDescending.HasValue)
            {
                currentTeams = isDescending == false
                    ? currentTeams.OrderBy(team => team.Name)
                    : currentTeams.OrderByDescending(team => team.Name);
            }

            currentTeams = currentTeams.Skip(page * count).Take(count);
            var maxPages = (Int32)Math.Floor(originalTeams.Length / (Double)count);
            var model = new HomeControllerViewModel(currentTeams, isDescending, page, maxPages);

            return View("Index", model);
        }
        public ActionResult Index()
        {
            var model = new HomeControllerViewModel(repository.GetTeams());

            return View("Index", model);
        }