コード例 #1
0
        private async Task AddToFriendList()
        {
            var result = await _profileService.AddFriendToFriendList(UserId.Value);

            if (result)
            {
                IsUserFriend = true;
                NotificationService.Notify($"Successfully added {UserName} to friend list");
            }
            else
            {
                NotificationService.Notify("Something was wrong");
            }
        }