Exemplo n.º 1
0
        public IHttpActionResult Get(int id)
        {
            GiftBoxService giftBoxService = CreateGiftBoxService();
            var            giftBox        = giftBoxService.GetGiftBoxById(id);

            return(Ok(giftBox));
        }
Exemplo n.º 2
0
        private GiftBoxService CreateGiftBoxService()
        {
            var userId         = Guid.Parse(User.Identity.GetUserId());
            var giftBoxService = new GiftBoxService(userId);

            return(giftBoxService);
        }
Exemplo n.º 3
0
        public IHttpActionResult Get()
        {
            GiftBoxService giftBoxService = CreateGiftBoxService();
            var            giftBox        = giftBoxService.GetGiftBoxes();

            return(Ok(giftBox));
        }