protected void ApplyButton_Click(object sender, EventArgs e)
 {
     App_Code.Car car = new App_Code.Car()
     {
         Model = modelTextBox.Text, Brand = brandTextBox.Text, YearProduction = Convert.ToInt32(yearProductionTextBox.Text), EngineType = engineTypeTextBox.Text, EngineFuel = Convert.ToInt32(engineFuelTextBox.Text), TransmissionModel = transmissionModelTextBox.Text, TransmissionGears = Convert.ToInt32(transmissionGearsTextBox.Text), Chassis = chassisTextBox.Text, Color = colorTextBox.Text, Price = Convert.ToInt32(priceTextBox.Text)
     };
     App_Code.ListCar.AddCar(car);
     Server.Transfer("index.aspx");
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            int carID = Convert.ToInt32(Request["id"]);

            App_Code.Car car = App_Code.ListCar.GetCarById(carID);

            model.Text             += car.Model;
            brand.Text             += car.Brand;
            yearProduction.Text    += car.YearProduction.ToString();
            engineType.Text        += car.EngineType;
            engineFuel.Text        += car.EngineFuel.ToString();
            transmissionModel.Text += car.TransmissionModel;
            transmissionGears.Text += car.TransmissionGears.ToString();
            chassis.Text           += car.Chassis;
            color.Text             += car.Color;
            price.Text             += car.Price.ToString();
        }