Esempio n. 1
0
        public IActionResult Index(int EventId)
        {
            GuestsViewModel guestsViewModel = new GuestsViewModel()
            {
                Guests = _guestsRepository.GetAllGuestsForEvent(EventId)
            };

            return(View(guestsViewModel));
        }
Esempio n. 2
0
        public IActionResult Details(int EventId)
        {
            HostEventsViewModel hostEventsViewModel = new HostEventsViewModel
            {
                HostEvent = _hostEventsRepository.GetHostEvent(EventId),
                Guests    = _guestsRepository.GetAllGuestsForEvent(EventId),
                Gifts     = _giftsRepository.GetAllGiftsForEvent(EventId)
            };

            return(View(hostEventsViewModel));
        }