public ProccessedOrderViewModel ConvertOrderToProccesedOrder(Order order) { ProccessedOrderViewModel proccessedOrder = new ProccessedOrderViewModel() { ProductName = order.orderProduct.Description, Quantity = order.orderQuantity, LocationName = order.orderLocation.LocationName, TotalPrice = order.getPrice() }; return(proccessedOrder); }