public void CreateOrder(IOrder _order) { var order = new Order { OrderId = _order.OrderId, MovieId = _order.MovieId, UserId = _order.UserId, SeatId = _order.SeatId, AgendaId = _order.AgendaId, Time = _order.Time, MovieHallId = _order.MovieHallId, MovieName = _order.MovieName, Price = _order.Price, TotalPrice = _order.TotalPrice, Quantity = _order.Quantity }; orderContext.CreateOrder(order); }
public void CreateOrder(IOrder order) { _context.CreateOrder(order); }