public IEnumerable<CoordinatesDTO> GetCoordinatesRange(DateTime fromTime, DateTime toTime) { var coords = uOW.CoordinatesHistoryRepo.Get(). Where(s => (s.AddedTime > fromTime && s.AddedTime < toTime)).ToList(); IEnumerable<CoordinatesDTO> coordDTO = new List<CoordinatesDTO>(); foreach (var coordin in coords) { Mapper.Map<CoordinatesDTO>(coordin); } return coordDTO; }