public override ActionResult Index(TeaserBlock currentBlock) { var viewmodel = new TeaserBlockViewModel { CurrentBlock = currentBlock }; return(PartialView(viewmodel)); }
public override ActionResult Index(TeaserBlock currentBlock) { var viewmodel = new TeaserBlockViewModel { CurrentBlock = currentBlock, TodaysVisitorCount = (new Random()).Next(300, 900) }; return(PartialView(viewmodel)); }
public override ActionResult Index(TeaserBlock currentBlock) { var model = new TeaserBlockViewModel { CurrentBlock = currentBlock, TodayVisitorCount = new Random().Next(900, 10900) }; return(PartialView(model)); }