コード例 #1
0
        public IEnumerable <Timestamp> GetLaterThan(DateTime?dateTime)
        {
            if (dateTime > DateTime.UtcNow.ToUTC2())
            {
                return(Enumerable.Empty <Timestamp>());
            }
            IEnumerable <Timestamp> timestamps;

            try
            {
                timestamps = _timestampRepository.GetAll().OrderByDescending(x => x.DateTime);
            }
            catch
            {
                throw;
            }
            if (dateTime != null)
            {
                timestamps = timestamps.Where(x => x.DateTime >= dateTime);
            }
            return(timestamps);
        }
コード例 #2
0
        public List <MissingModelBaseImage> GetAllSeenBaseImages()
        {
            List <MissingModel> seenMissingModels = _timestampRepository.GetAll().Select(x => x.MissingModel).Distinct().ToList();

            return(TakeBaseImages(seenMissingModels));
        }