예제 #1
0
 public BasketLineDto(BasketLine line, BasketDto basket)
 {
     Basket    = basket;
     BasketId  = basket.Id;
     ProductId = line.Product.Id;
     Quantity  = (int)line.Quantity;
 }
예제 #2
0
 public BasketLineDto(BasketDto basket, ProductDto product, int quantity)
 {
     Basket    = basket;
     Product   = product;
     BasketId  = basket.Id;
     ProductId = product.Id;
     Quantity  = quantity;
 }