IList <MailData> GetSortedMessages(MailMessageRepository repository)
 {
     return(repository.MailMessages.OrderByDescending(x => x.MailTime).ToList());
 }
 public ViewModel(MailMessageRepository repository)
 {
     this.repository      = repository;
     ItemSource           = GetSortedMessages(this.repository);
     PullToRefreshCommand = new Command(ExecutePullToRefreshCommand);
 }