Exemple #1
0
        protected void btnAgencies_Click(object sender, EventArgs e)
        {
            DataSet agencies = carRental.GetRentalCarAgencies(txtCity.Text, ddlState.SelectedValue);

            Cars.Agency agency = new Cars.Agency();
            agency.agencyID = (int)agencies.Tables[0].Rows[ddlAgencies.SelectedIndex]["AgencyID"];
            agency.name     = ddlAgencies.SelectedValue;
            agency.city     = (string)agencies.Tables[0].Rows[ddlAgencies.SelectedIndex]["City"];
            agency.state    = (string)agencies.Tables[0].Rows[ddlAgencies.SelectedIndex]["State"];

            DataSet myDS = carRental.GetCarsByAgency(agency, txtCity.Text, ddlState.SelectedValue);

            rptCars.DataSource = myDS;
            rptCars.DataBind();

            divSearchCars.Visible = false;
            divCars.Visible       = true;
        }
 /// <remarks/>
 public void FindCarsByAgencyAsync(Agency agency, Requirements requirements, string city, string state)
 {
     this.FindCarsByAgencyAsync(agency, requirements, city, state, null);
 }
 /// <remarks/>
 public void ReserveAsync(Agency agency, Car car, Customer customer, string TravelSiteID, string TravelSitePassword)
 {
     this.ReserveAsync(agency, car, customer, TravelSiteID, TravelSitePassword, null);
 }
 /// <remarks/>
 public void GetCarsByAgencyAsync(Agency agency, string city, string state)
 {
     this.GetCarsByAgencyAsync(agency, city, state, null);
 }