Exemplo n.º 1
0
        public ActionResult Index()
        {
            var section      = dataContextRetriever.Retrieve <TreeNode>().Page;
            var companyCafes = cafeRepository.GetCompanyCafes(section.NodeAliasPath, 4);
            var partnerCafes = cafeRepository.GetPartnerCafes(section.NodeAliasPath);

            var model = new CafesIndexViewModel
            {
                CompanyCafes = GetCompanyCafesModel(companyCafes),
                PartnerCafes = GetPartnerCafesModel(partnerCafes)
            };

            return(View(model));
        }