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(); }
public SortByEnum Get() { return(SortBy.From(GetRecord().Name)); }