예제 #1
0
        public static CarDomainModel Create(Car car)
        {
            return new CarDomainModel
            {
                Id = car.Id,
                Make = car.Make,
                Model = car.Model,
                Available = car.Available,
                SegmentId = car.SegmentId,

            };
        }
예제 #2
0
파일: CarType.cs 프로젝트: kasidech/Manee
        private void FixupCar(Car previousValue)
        {
            if (previousValue != null && ReferenceEquals(previousValue.CarType, this))
            {
                previousValue.CarType = null;
            }

            if (Car != null)
            {
                Car.CarType = this;
            }
        }