public Order GetOrder(int userId) { Order order = new Order(); order = _orderContext.GetOrder(userId); foreach (Product product in order.Cart.Products) { product.SubTotal = (int)Convert.ToDouble(product.Productprice * product.Amount); } return(order); }
public OrderDto GetOrder(Guid guid) { return(_orderContext.GetOrder(guid)); }
public Order GetOrder(int id) { return(OrderContext.GetOrder(id)); }