public Orders ParseOrders(OrderCRVM order) { return(new Orders { id = order.Id, total = order.Total, orderdate = order.Orderdate, customerid = order.Customerid, locationid = order.Locationid }); }
public Order cast2Order(OrderCRVM order2BCasted) { return(new Order { Total = order2BCasted.Total, CustomerId = order2BCasted.CustomerId, LocationId = order2BCasted.LocaitonId, Quantity = order2BCasted.Quantitiy, /* ItemId = order2BCasted.ItemId, * Item = new Item { }*/ // Quantity =order2BCasted.Quantitiy, ProductId = order2BCasted.ProductId }); }