private async void hyplnkDelete_Click_1(object sender, RoutedEventArgs e)
        {
            List<object> lists = new List<object>();
            lists = lvListAllFriends.SelectedItems.ToList();
            if (lists.Count > 0)
            {
                foreach (dynamic list in lists)
                {
                    friends friend = new friends
                    {
                        id = list.id,
                        uniqueKey = list.uniqueKey,
                        userId = list.userId,
                        approved = list.approved,
                        friendId = list.friendId,
                        friendName = list.friendName,
                        createdAt = list.createdAt,
                        username = list.username,
                        updatedAt = list.updatedAt,
                        userImage = list.userImage
                    };
                    await App.MobileService.GetTable<friends>().DeleteAsync(friend);
                }
            }
            else
                await new Windows.UI.Popups.MessageDialog("Select a friend and try again").ShowAsync();

            this.Frame.Navigate(typeof(WhereTheFriend.AllFriends));
        }
        private async void ApprovedFriendRequest()
        {
            List<object> lists = new List<object>();
            lists = lvListPendingRequest.SelectedItems.ToList();
            if (lists.Count > 0)
            {
                foreach (dynamic list in lists)
                {
                    friends friend = new friends
                    {
                        id = list.id,
                        uniqueKey = list.uniqueKey,
                        userId = list.userId,
                        approved = true,
                        friendId = list.friendId,
                        friendName = list.friendName,
                        createdAt = list.createdAt,
                        username = list.username,
                        updatedAt = list.updatedAt,
                        userImage = list.userImage
                    };
                    await App.MobileService.GetTable<friends>().UpdateAsync(friend);

                }

            }
            else
                await new Windows.UI.Popups.MessageDialog("Select friends from the friends list before click on Approved button").ShowAsync();
            
        }
 private async void AddFriendRequest(friends friend)
 {
     await App.MobileService.GetTable<friends>().InsertAsync(friend);
     this.Frame.Navigate(typeof(WhereTheFriend.Welcome));
 }
        private async void btnAddFriendRequest_Click_1(object sender, RoutedEventArgs e)
        {
            List<object> lists = new List<object>();
            lists = lvListAllCustomer.SelectedItems.ToList();
            if (lists.Count > 0)
            {
                foreach (dynamic list in lists)
                {
                    friends friend = new friends
                    {
                        uniqueKey = LiveUserInfo.Id + "_" + list.userId,
                        userId = LiveUserInfo.Id,
                        approved = false,
                        friendId = list.userId,
                        friendName = list.name,
                        createdAt = DateTime.Now.ToUniversalTime(),
                        username = LiveUserInfo.Name,
                        updatedAt = DateTime.Now.ToUniversalTime(),
                        userImage = LiveUserInfo.pic,// "http://azmob.blob.core.windows.net/images/" + LiveUserInfo.Name.Replace(' ', '_').ToLower() + ".jpg",
                        channeluri = LiveUserInfo.channelUri
                    };
                    AddFriendRequest(friend);

                }
            }
            else
                await new Windows.UI.Popups.MessageDialog("Select friends from the friends list before click on add friends").ShowAsync();
            //Navigate the page
            this.Frame.Navigate(typeof(WhereTheFriend.Welcome));

        }