Exemplo n.º 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;
        }
Exemplo n.º 2
0
 /// <remarks/>
 public void FindCarsByAgencyAsync(Agency agency, Requirements requirements, string city, string state)
 {
     this.FindCarsByAgencyAsync(agency, requirements, city, state, null);
 }
Exemplo n.º 3
0
 /// <remarks/>
 public void ReserveAsync(Agency agency, Car car, Customer customer, string TravelSiteID, string TravelSitePassword)
 {
     this.ReserveAsync(agency, car, customer, TravelSiteID, TravelSitePassword, null);
 }
Exemplo n.º 4
0
 /// <remarks/>
 public void GetCarsByAgencyAsync(Agency agency, string city, string state)
 {
     this.GetCarsByAgencyAsync(agency, city, state, null);
 }