protected virtual void PrepareDashboardModel(DashboardModel model) { var groupDealProducts = _productService.SearchProducts( productType: Core.Domain.Catalog.ProductType.GroupDeal); model.ActiveGroupDeals = groupDealProducts; }
public ActionResult Index() { var model = new DashboardModel(); PrepareDashboardModel(model); return View(model); }