private async Task Create() { var result = await TodoAppService.CreateAsync(NewTodoText); TodoItems.Add(result); NewTodoText = null; }
private async Task Delete(TodoItemDto todoItem) { await TodoAppService.DeleteAsync(todoItem.Id); await Notify.Info("Deleted the todo item."); TodoItems.Remove(todoItem); }
public IndexModel(TodoAppService todoAppService) { _todoAppService = todoAppService; }
protected async override Task OnInitializedAsync() { TodoItems = await TodoAppService.GetListAsync(); }
public TodoAppService_Tests() { todoAppService = Resolve <TodoAppService>(); }