コード例 #1
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));
        }
コード例 #2
0
ファイル: GiftController.cs プロジェクト: vrtlg/Hushhlist
        public IActionResult Index(int EventId)
        {
            HostEventsViewModel hostEventsViewModel = new HostEventsViewModel()
            {
                Gifts = _giftsRepository.GetAllGiftsForEvent(EventId)
            };

            return(View(hostEventsViewModel));
        }