示例#1
0
        public PartialViewResult GetNext(string region, int count)
        {
            var model = new RegionModel
              {
            Urls = GetImageUrls(region).Skip(count).Take(ImageLoadCount).ToList(),
            Region = region,
            Count = count + ImageLoadCount
              };

              return PartialView("ForecastRow", model);
        }
示例#2
0
        private ActionResult ReturnToIndex(string region)
        {
            var model = new RegionModel
              {
            Region = region,
            Count = ImageLoadCount,
            Urls = ScreenScraper.GetImageUrls(region)
              };

              return View("Index", model);
        }