Ejemplo n.º 1
0
        public void CompleteTrip(int tripId)
        {
            Trip  trip           = TripDAO.getTripById(tripId);
            Order completedOrder = OrderDAO.GetOrderById(trip.OrderId);

            completedOrder.Status = TripStatusEnum.DONE;
            OrderDAO.Update(completedOrder);

            TripDAO.Delete(trip);
        }