public int AddCarBrand(string name) { CarBrand newCarBrand = new CarBrand { Name = name }; db.CarBrands.InsertOnSubmit(newCarBrand); Save(); return newCarBrand.Id; }
partial void DeleteCarBrand(CarBrand instance);
partial void UpdateCarBrand(CarBrand instance);
partial void InsertCarBrand(CarBrand instance);