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