Ejemplo n.º 1
0
        private async void DeleteFriend(object friendObject)
        {
            Answer friend = friendObject as Answer;

            if (friend != null)
            {
                IsBusy = true;
                UserTest deletedFriend = await friendsService.Delete(friend.Id);

                if (deletedFriend != null)
                {
                    UserTests.Remove(deletedFriend);
                }
                IsBusy = false;
            }
            Back();
        }
Ejemplo n.º 2
0
        public async Task <UserTest> CreateUserAnswers(UserTest answerObject)
        {
            UserTest answer = await friendsService.Add(answerObject);

            return(answer);
        }
Ejemplo n.º 3
0
 public UserTestDetailViewModel(UserTest item = null)
 {
     Title    = item?.UserId;
     UserTest = item;
 }