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); }
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; }