private IActionResult ReturnMainView()
        {
            HomePageBinding model = new HomePageBinding();

            var events = GetEvents();

            foreach (var currentEvent in events)
            {
                if (!currentEvent.IsDeleted)
                {
                    model.Events.Add(eventMapper.ViewEvent(currentEvent));
                }
            }

            return(View(model));
        }
Beispiel #2
0
        public IActionResult AdminViewEvent(Event dbEvent)
        {
            var model = eventMapper.ViewEvent(dbEvent);

            return(View(model));
        }
 public IActionResult ViewEvent(Event dbEvent)
 {
     return(View(eventMapper.ViewEvent(dbEvent)));
 }