示例#1
0
        public async Task <IActionResult> SelectGift(long id)
        {
            var user = User;
            var gift = await giftService.GetGiftByIdAsync(id);

            await giftService.SelectGiftByUserAsync(gift, user);

            return(RedirectToAction(nameof(EventController.Show), "Event", new { id = gift.Event.EventId }));
        }