예제 #1
0
 //get orederItem
 public Model.Item ParseIt(Entity.OrderItem item)
 {
     return(new Model.Item
     {
         Quantity = item.Quantity,
         PFK = item.Product,
         OID = (int)item.StoreOrder
     });
 }
예제 #2
0
 public Model.OrderItems ParseOrderItems(Entity.OrderItem orderItem)
 {
     return(new Model.OrderItems
     {
         OrderQuantity = orderItem.OrderQuantity,
         OrderItemID = orderItem.OrderProduct,
         OrderID = orderItem.Id
     });
 }