Exemple #1
0
        public ActionResult List(string groupUrl, string typeUrl)
        {
            var typePlace = _context.GetType(typeUrl);
            var model     = new PlaceListVm
            {
                PlaceList        = Mapper.Map <List <PlaceBaseVm> >(_context.GetPlaces(typePlace.PlaceTypeId)),
                GroupTitle       = _context.GetGroupTitleByTypeId(typePlace.PlaceTypeId),
                TypeTitle        = typePlace.Title,
                TypeTitleOne     = typePlace.TitleOne,
                PlaceTypeId      = typePlace.PlaceTypeId,
                PlaceTypeGroupId = typePlace.PlaceTypeGroupId,
                GroupUrl         = groupUrl
            };

            ViewBag.Keywords    = string.Format("{0},{1}", model.TypeTitleOne, model.GroupTitle);
            ViewBag.Description = model.TypeTitleOne;

            return(View(model));
        }