Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 public SortModel()
 {
     this.Sorts    = SortSetting.Sorts;
     this.Selected = Sorts.FirstOrDefault();
 }