private static ReturnRequestOrderItemComponentModel CreateReturnRequestOrderItemComponentModel(MOrder_OrderItemComponent from) { var to = new ReturnRequestOrderItemComponentModel(); CopyReturnOrderItemComponentModel(to, from); return(to); }
private static void CopyReturnOrderItemComponentModel(ReturnRequestOrderItemComponentModel to, MOrder_OrderItemComponent from) { to.OrderableProjectComponentId = from.OrderableComponentId; to.Name = from.Description; //to.Sku = from.Sku; to.Quantity = from.Quantity; to.UnitPrice = from.UnitPrice; to.TotalPrice = from.TotalPrice; }