Example #1
0
        private async Task CreateAsync(MicroCommentForm form)
        {
            var data = await App.Repository.Micro.CreateCommentAsync(form);

            if (data == null)
            {
                return;
            }
            var dispatcherQueue = Windows.System.DispatcherQueue.GetForCurrentThread();
            await dispatcherQueue.EnqueueAsync(() =>
            {
                Toast.Tip("评论成功");
                CommentTb.Text = "";
                ParentId       = 0;
            });
        }
Example #2
0
 internal async Task <CommentBase> CreateCommentAsync(MicroCommentForm form)
 {
     return(await http.PostAsync <CommentBase>("micro/comment/save", form));
 }