public SearchCriteria(string fromAirport, string toAirport) : this()
 {
     FromAirport  = fromAirport;
     ToAirport    = toAirport;
     OutboundDate = DateTime.Now.Date;
     ReturnDate   = OutboundDate.AddDays(7);
 }
Exemple #2
0
 public override string ToString()
 {
     return(string.Format(@"DestinationPlace is {0},
                     OutboundDate is {1},
                     InboundDate is {2}  ",
                          DestinationPlace.ToString(),
                          OutboundDate.ToString("dd/MM/yyyy"),
                          InboundDate.ToString("dd/MM/yyyy")));
 }