Skip to content

Commit

Permalink
Fix #292 : Сделать сортировку для докладов #293
Browse files Browse the repository at this point in the history
Fix #292 : Сделать сортировку для докладов
  • Loading branch information
pfedotovsky authored Apr 26, 2020
2 parents dc186fc + dac4c6d commit 76dc450
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions DotNetRu.Clients.UI/Speakers/SpeakerDetailsViewModel.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using System.Collections.Generic;

using System.Linq;
using DotNetRu.DataStore.Audit.Models;
using DotNetRu.Utils.Helpers;

Expand All @@ -11,7 +11,7 @@
using MenuItem = DotNetRu.Clients.Portable.Model.MenuItem;

namespace DotNetRu.Clients.Portable.ViewModel
{
{
public class SpeakerDetailsViewModel : ViewModelBase
{
private MenuItem selectedFollowItem;
Expand Down Expand Up @@ -90,13 +90,13 @@ private void FillFollows()
Name = $"{gitHubValue}",
Parameter = SpeakerModel.GitHubUrl,
Icon = "icon_github.png"
});
});
}
}

public SpeakerModel SpeakerModel { get; set; }

public IEnumerable<TalkModel> Talks => this.SpeakerModel.Talks;
public IEnumerable<TalkModel> Talks => this.SpeakerModel.Talks.OrderByDescending(t => t.Sessions.FirstOrDefault()?.Meetup?.StartTime);

public ObservableRangeCollection<MenuItem> FollowItems { get; } = new ObservableRangeCollection<MenuItem>();

Expand Down

0 comments on commit 76dc450

Please sign in to comment.