예제 #1
0
        public RaceDriverProfileCI(RaceDriverProfileDTO item)
        {
            Guard.Argument(item, nameof(item)).NotNull();

            RaceDriverId = item.RaceDriverId;
            RaceTeamId   = item.RaceTeamId;
            Car          = item.Car != null ? new CarCI(item.Car) : null;
        }
예제 #2
0
        public RaceDriverProfileCI(ExportableRaceDriverProfileCI exportable)
        {
            if (exportable == null)
            {
                throw new ArgumentNullException(nameof(exportable));
            }
            RaceDriverId = exportable.RaceDriverId != null?URN.Parse(exportable.RaceDriverId) : null;

            RaceTeamId = exportable.RaceTeamId != null?URN.Parse(exportable.RaceTeamId) : null;

            Car = exportable.Car != null ? new CarCI(exportable.Car) : null;
        }