Beispiel #1
0
 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();
 }
Beispiel #2
0
 public List<Bike> GetBikesByCategory(string Category)
 {
     DBBike dbBike = new DBBike();
     List<Bike> bikes = new List<Bike>();
     bikes = dbBike.GetBikesByCategory(Category);
     return bikes;
 }
Beispiel #3
0
 public Bike FindBikeById(int IDBike)
 {
     DBBike dbBike = new DBBike();
     Bike bike= dbBike.FindBikeById(IDBike);
       //  SerializeToXml((Object)bike);
     return bike;
 }
Beispiel #4
0
 public List<Bike> GetAllBikes()
 {
     DBBike dbBike = new DBBike();
     List<Bike> bikes = new List<Bike>();
     bikes=dbBike.GetBikes();
     return bikes;
 }
Beispiel #5
0
        public void DeleteBike(int IDBike)
        {
            DBBike dbb = new DBBike();

            dbb.OpenConnection();
            dbb.DeleteBike(IDBike);
            dbb.CloseConnection();
        }