예제 #1
0
        public CarCategory getOneCategory(int id)
        {
            CarCategory carCategory = new CarCategory();

            carCategory = DB.CarCategories.SingleOrDefault(c => c.CatId == id);

            return(carCategory);
        }
        public CarCategory ConvertToCarCategory()
        {
            CarCategory carCategory = new CarCategory
            {
                CatId   = CatID,
                CatName = CatName,
                CatDesc = CatDesc,
            };

            return(carCategory);
        }
예제 #3
0
        public CarModel_Model(CarModel car)
        {
            CModelID           = car.CModelId;
            CModelManufacturer = car.CModelManufacturer;
            CModelName         = car.CModelName;
            CModelCatID        = car.CModelCatId;
            PriceDay           = car.PriceDay;
            PriceLateDay       = car.PriceLateDay;

            CModelCat = car.CModelCat;
        }
 public CarCategoryModel(CarCategory carCategory)
 {
     CatID   = carCategory.CatId;
     CatName = carCategory.CatName;
     CatDesc = carCategory.CatDesc;
 }