private async void AddFriend(Guid?userId) { if (!userId.HasValue) { return; } try { var request = await friendService.AddRequestAsync(userId.Value); friendStore.SentRequests.Add(request); } catch (FlurlHttpException e) { await dialogService.ShowError("Failed to send request."); } }