示例#1
0
        // ---------------------------------------- Guest only -----------------------------------

        public IActionResult Index_Guest()
        {
            HostEventsViewModel hostEventsViewModel = new HostEventsViewModel()
            {
                Gifts = _giftsRepository.GetAllGifts()
            };

            return(View(hostEventsViewModel));
        }
示例#2
0
 // GET: api/Gifts
 public List <Gift> Get()
 {
     return(GiftsRepository.GetAllGifts());
 }