Пример #1
0
        private async Task SendAsync()
        {
            IsBusy = true;

            try
            {
                // Sends the comment to the mobile app.
                await timelineService.SendCommentAsync(post, message);

                Message = null;
            }
            catch
            {
                await DialogService.AlertAsync("An error occurred while sending the comment.");
            }
            finally
            {
                IsBusy = false;
            }
        }