public SearchCriteria(string fromAirport, string toAirport) : this() { FromAirport = fromAirport; ToAirport = toAirport; OutboundDate = DateTime.Now.Date; ReturnDate = OutboundDate.AddDays(7); }
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"))); }