BAL.Manager.CoordinatesManager.RemoveToDate C# (CSharp) Method

RemoveToDate() public method

Remove records of Coordinates with added time earlier than date
public RemoveToDate ( System.DateTime date ) : void
date System.DateTime
return void
        public void RemoveToDate(DateTime date)
        {
            var coordForDelete = uOW.CoordinatesHistoryRepo.Get()
                .Where(s => (s.AddedTime < date)).ToList();
            foreach (var coordinates in coordForDelete)
            {
                uOW.CoordinatesHistoryRepo.Delete(coordinates.Id);
            }
        }