Ejemplo n.º 1
0
 /// <summary>
 /// add an agency to the collection
 /// </summary>
 /// <param name="agency">agency</param>
 /// <returns>true if success, false else</returns>
 public bool AddAgency(Tour_Agency agency)
 {
     if (agency.AgencyID < nextAgencyNumber)
     {
         if (!myDal.AddAgency(agency))
         {
             return(false);
         }
     }
     nextAgencyNumber = agency.AgencyID + 1;
     return(true);
 }