public void UpdateBike(int IDBike, string Name, string Category, string Brand, int Price, float BWeight, int Size, string Gender, string Material, string Colour, int WheelSize, string Features) { DBBike dbBike = new DBBike(); dbBike.OpenConnection(); dbBike.UpdateBike(IDBike, Name, Category, Brand, Price, BWeight, Size, Gender, Material, Colour, WheelSize, Features); dbBike.CloseConnection(); }
public List<Bike> GetBikesByCategory(string Category) { DBBike dbBike = new DBBike(); List<Bike> bikes = new List<Bike>(); bikes = dbBike.GetBikesByCategory(Category); return bikes; }
public Bike FindBikeById(int IDBike) { DBBike dbBike = new DBBike(); Bike bike= dbBike.FindBikeById(IDBike); // SerializeToXml((Object)bike); return bike; }
public List<Bike> GetAllBikes() { DBBike dbBike = new DBBike(); List<Bike> bikes = new List<Bike>(); bikes=dbBike.GetBikes(); return bikes; }
public void DeleteBike(int IDBike) { DBBike dbb = new DBBike(); dbb.OpenConnection(); dbb.DeleteBike(IDBike); dbb.CloseConnection(); }