public SortModel() { this.Sorts = new List <SortDto>() { new SortDto("По имени", new SortDescription(nameof(IManga.Name), ListSortDirection.Ascending)), new SortDto("Последние добавленные", new SortDescription(nameof(IManga.Created), ListSortDirection.Descending)), new SortDto("Последние обновлённые", new SortDescription(nameof(IManga.DownloadedAt), ListSortDirection.Descending)) }; this.Selected = Sorts.FirstOrDefault(); }
public SortModel() { this.Sorts = SortSetting.Sorts; this.Selected = Sorts.FirstOrDefault(); }