private void btnInsertNewCar_Click(object sender, EventArgs e) { try { CarService.CarManagementClient client; client = new CarService.CarManagementClient(); CarService.Car car; car = new CarApplication.CarService.Car(); car.BrandName = "BMW"; car.TypeName = "320d"; int newCarID; newCarID = client.InsertNewCar(car); } catch (Exception ex) { textBox1.Text = ex.Message; } }
public bool RemoveCar(CarApplication.CarService.Car car) { return(base.Channel.RemoveCar(car)); }
public void UpdateMilage(CarApplication.CarService.Car car) { base.Channel.UpdateMilage(car); }
public int InsertNewCar(CarApplication.CarService.Car car) { return(base.Channel.InsertNewCar(car)); }