예제 #1
0
        public ActionResult Types(string groupUrl)
        {
            var model = new PlaceTypesVm
            {
                Types      = Mapper.Map <List <PlaceTypeBaseVm> >(_context.GetTypes(groupUrl)),
                GroupTitle = _context.GetGroupTitle(groupUrl)
            };

            foreach (var typeItem in model.Types)
            {
                typeItem.GroupUrl = groupUrl;
            }
            ViewBag.Keywords    = string.Format("місця, {0}", model.GroupTitle);
            ViewBag.Description = model.GroupTitle;
            return(View(model));
        }