private async void OnCommentSubmit(object sender, EventArgs e) { var service = new GroupService(); var requestResult = await service.AddComment(postId, NewComment.Text); if (requestResult.IsSuccessful) { CommentsList.Children.Add(new Comment(requestResult.Data, OnCommentDelete)); NewComment.Text = string.Empty; } }