Ejemplo n.º 1
0
 protected bool IsTourExpired(Tour tour)
 {
     if (DateTime.Now > tour.ExpirationDate) return true;
     return false;
 }
Ejemplo n.º 2
0
 protected Tour ValidateTourBid(Tour tour, string userId)
 {
     if (tour.Bids.FirstOrDefault(x => x.UserId == userId) != null) throw new CustomAppException(Resources.Language.SelfBidError);
     return tour;
 }
Ejemplo n.º 3
0
 protected void ValidateTourExpiration(Tour tour)
 {
     if (DateTime.Now > tour.ExpirationDate) throw new CustomAppException(Resources.Language.TourExpiredError);
 }
Ejemplo n.º 4
0
 public void RemoveLine(Tour tour)
 {
     lineCollection.RemoveAll(l => l.Tour.TourId == tour.TourId);
 }