public vehicle vehicle_insert() { vehicle.case_id = Convert.ToInt32(Insert_case_id_txt.Text); vehicle.client_id = Convert.ToInt32(Insert_client_id_txt.Text); vehicle.vehicle_make = Insert_vehicle_make_txt.Text; vehicle.vehicle_model = Insert_vehicle_model_txt.Text; vehicle.vehicle_type = Insert_vehicle_type_txt.Text; vehicle.vehicle_year = Convert.ToInt32(Insert_vehicle_year_txt.Text); vehicle.vehicle_desc = Insert_vehicle_desc_txt.Text; vehicle.vin = Insert_vin_txt.Text; vehicle.start_mileage = Convert.ToInt32(Insert_start_mileage_txt.Text); vehicle.first_service_date = Convert.ToDateTime(Insert_first_service_date_txt.Text); vehicle.last_service_date = Convert.ToDateTime(Insert_last_service_date_txt.Text); vehicle.PLATENUMBER = Insert_PLATENUMBER_txt.Text; vehicle.FUELTYPE = Insert_FUELTYPE_txt.Text; vehicle.MPH = Convert.ToInt32(Insert_MPH_txt.Text); vehicle.INSURED = Insert_INSURED_txt.Text; vehicle = vehicle.Insert(vehicle); Insert_vehicle_GridView.DataBind(); Update_vehicle_GridView.DataBind(); Delete_vehicle_GridView.DataBind(); return(vehicle); }