コード例 #1
0
ファイル: Service1.svc.cs プロジェクト: AppleEggX/newcofeshop
        public BasketDTO CheckOutBasket(int basketId)
        {
            Basket basket = service.CheckOutBasket(basketId);

            return(new BasketDTO
            {
                Id = basket.Id,
                Paied = basket.Paied,
                SumPrice = basket.SumPrice
            });
        }
コード例 #2
0
        public BasketDTO CheckOutBasket(int basketId)
        {
            Basket basket = basketService.CheckOutBasket(basketId);

            return(new BasketDTO
            {
                Id = basket.Id,
                SumPrice = basket.SumPrice,
                Paid = basket.Paid,
                User_Id = basket.User.Id
            });
        }