예제 #1
0
        public async void RefreshList()
        {
            var profiles = await RepositoryService.GetAllAsync <ProfileModel>(p => p.UserId == Settings.RememberedUserId);

            if (Settings.RememberedRadioButton == "SortByDate" || string.IsNullOrEmpty(Settings.RememberedRadioButton))
            {
                profiles = profiles.OrderBy(p => p.DateLabel);
            }
            else if (Settings.RememberedRadioButton == "SortByName")
            {
                profiles = profiles.OrderBy(p => p.NameLabel);
            }
            else if (Settings.RememberedRadioButton == "SortByNickName")
            {
                profiles = profiles.OrderBy(p => p.NickNameLabel);
            }

            if (profiles.ToList().Count != 0)
            {
                ProfileList    = new ObservableCollection <ProfileModel>(profiles);
                IsListVisible  = true;
                IsLabelVisible = false;
            }
            else
            {
                IsListVisible  = false;
                IsLabelVisible = true;
            }
        }
예제 #2
0
 public async Task <IActionResult> GetAll()
 {
     return(await RepositoryService.GetAllAsync(AccountTicket));
 }