예제 #1
0
        // GET: Home
        public ActionResult Index()
        {
            string Latitude  = Session["ULatitude"] != null ? Session["ULatitude"].ToString() : "0";
            string Longitude = Session["ULongitude"] != null ? Session["ULongitude"].ToString() : "0";

            List <MetaDataViewModel> MetaData = new List <MetaDataViewModel> {
                new MetaDataViewModel {
                    name = "description", content = "MusicEvent is great place to browse any music event anywhere in world. You can search all recent music events, programs, concert by well know celebrities, musicians, singers using our easy search options. you can also book for events, programs, concert easy steps."
                },
                new MetaDataViewModel {
                    name = "keywords", content = "MusicEvent, Music, Program, Concert, Party, Singer, Celebrities, Musician, Singer, USA"
                }
            };

            ViewBag.MetaData = MetaData;

            List <EventDataModal> EventsData = _EventService.GetTenLatestEvents(0, "", null, Latitude, Longitude);
            List <EventViewModal> Events     = Mapper.Map <List <EventDataModal>, List <EventViewModal> >(EventsData);

            EventDataModal HeaderEvent = _EventService.GetHeaderEvent(Latitude, Longitude);

            ViewBag.HeaderEvent      = Mapper.Map <EventDataModal, EventViewModal>(HeaderEvent);
            ViewBag.MainCategoryList = GlobalDataHelper.GetMainCategoryList();

            return(View(Events));
        }
예제 #2
0
        // GET: Event
        public ActionResult Index()
        {
            List <MetaDataViewModel> MetaData = new List <MetaDataViewModel> {
                new MetaDataViewModel {
                    name = "description", content = "List of MusicEvents. MusicEvent is great place to browse any music event anywhere in world. You can search all recent music events, programs, concert by well know celebrities, musicians, singers using our easy search options. you can also book for events, programs, concert easy steps."
                },
                new MetaDataViewModel {
                    name = "keywords", content = "MusicEvent, Music, Program, Concert, Party, Singer, Celebrities, Musician, Singer, USA"
                }
            };

            ViewBag.MetaData = MetaData;

            ViewBag.MainCategoryList = GlobalDataHelper.GetMainCategoryList();

            return(View());
        }