예제 #1
0
        public async Task <IActionResult> GetAllWishGiftList(int userId)
        {
            var allWishListGifts = await _repo.GetAllWishGiftList(userId);

            if (allWishListGifts == null)
            {
                return(BadRequest());
            }

            var giftToRetrunDTOs = _mapper.Map <ICollection <GiftToRetrunDTO> >(allWishListGifts);

            return(Ok(giftToRetrunDTOs));
        }