public async void AddTask() { if (string.IsNullOrWhiteSpace(Content)) { return; } ChecklistDetail detail = new ChecklistDetail(); detail.Id = Guid.NewGuid().ToString(); detail.Content = Content; var result = await _toDoService.AddToDoDetailAsync(SingleChecklist.Checklist.Id, detail); if (result) { SingleChecklist.ChecklistDetails.Add(new ChecklistDetail { Content = Content }); Content = string.Empty; } }