Пример #1
0
 protected bool IsTourExpired(Tour tour)
 {
     if (DateTime.Now > tour.ExpirationDate) return true;
     return false;
 }
Пример #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;
 }
Пример #3
0
 protected void ValidateTourExpiration(Tour tour)
 {
     if (DateTime.Now > tour.ExpirationDate) throw new CustomAppException(Resources.Language.TourExpiredError);
 }
Пример #4
0
 public void RemoveLine(Tour tour)
 {
     lineCollection.RemoveAll(l => l.Tour.TourId == tour.TourId);
 }