Пример #1
0
        public TripInfo BuildTrip(TripInfo tripInfo)
        {
            tripInfo.UpdatedBy = "System";
            tripInfo.UpdatedOn = DateTime.Now;

            return(tripInfo);
        }
Пример #2
0
        public TripInfo BuildTrip(TripInfo tripInfo, Guid driverId)
        {
            tripInfo.Id        = Guid.NewGuid();
            tripInfo.CreatedBy = "System";
            tripInfo.CreatedOn = DateTime.Now;
            tripInfo.UpdatedBy = "System";
            tripInfo.UpdatedOn = DateTime.Now;
            tripInfo.StartTime = DateTime.Now;
            tripInfo.Status    = TripStatus.ReadyToPick.ToString();
            tripInfo.DriverId  = driverId;

            return(tripInfo);
        }