internal static RentInfo ToRentInfo(this RentData data)
        {
            if (data == null)
            {
                throw new NullReferenceException(nameof(data));
            }

            return(new RentInfo()
            {
                DailyCost = data.VehicleDailyCost,
                Plate = data.VehiclePlate,
                StartRent = data.StartRent,
                EndRent = data.EndRent
            });
        }
Example #2
0
 private Task SetRentDataIntoStateAsync(RentData data, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(this.StateManager.SetStateAsync <RentData>(CurrentRentedCarKeyName, data, cancellationToken));
 }