Пример #1
0
        public void Update(SortByEnum sortBy)
        {
            var sortTypeRecord = _sortTypeRepo.Get().ToList().First(sortType => SortBy.From(sortType.Name) == sortBy);

            _currentSortDirectionRepo.Clear();
            _currentSortDirectionRepo.Add(new CurrentSortDirectionRecord {
                SortType = sortTypeRecord
            });
            _unitOfWork.Save();
        }
Пример #2
0
 public SortByEnum Get()
 {
     return(SortBy.From(GetRecord().Name));
 }