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