public AddRideCommand(AppUserId ownerId, GroupId groupId, DateTimeOffset date, double price, Location location, RideDirection rideDirection, List <AddStopDto>?stops, byte seatsLimit) => (OwnerId, GroupId, Date, Price, Location, RideDirection, Stops, SeatsLimit)
public Ride(RideId rideId, AppUserId ownerId, GroupId groupId, DateTimeOffset date, double price, Location location, RideDirection rideDirection, List <Stop> stops, byte seatsLimit, List <RideRequest> rideRequests, RecurringRideId?recurringRideId = null) { Id = rideId; OwnerId = ownerId; GroupId = groupId; Date = date; Price = price; Location = location; RideDirection = rideDirection; Stops = stops; SeatsLimit = seatsLimit; RideRequests = rideRequests; RecurringRideId = recurringRideId; }
public AddRecurringRideCommand(AppUserId ownerId, GroupId groupId, TimeSpan rideTime, double price, Location location, RideDirection rideDirection, byte weekDays, DateTimeOffset startDate, DateTimeOffset endDate, List <AddStopDto>?stops, byte seatsLimit) { OwnerId = ownerId; GroupId = groupId; RideTime = rideTime; Price = price; Location = location; RideDirection = rideDirection; WeekDays = weekDays; StartDate = startDate; EndDate = endDate; Stops = stops; SeatsLimit = seatsLimit; }