public override string Format() { return(JsonConvert.SerializeObject(new { TollId = TollId.ToString(CultureInfo.InvariantCulture), ExitTime = ExitTime.ToString("o"), LicensePlate, })); }
public override string Format() { return(JsonConvert.SerializeObject(new { TollId = TollId.ToString(CultureInfo.InvariantCulture), EntryTime = EntryTime.ToString("o"), LicensePlate, State, CarModel.Make, CarModel.Model, VehicleType = CarModel.VehicleType.ToString(CultureInfo.InvariantCulture), VehicleWeight = CarModel.VehicleWeight.ToString(CultureInfo.InvariantCulture), Toll = TollAmount.ToString(CultureInfo.InvariantCulture), Tag = Tag.ToString(CultureInfo.InvariantCulture) })); }