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