public async Task <TodoCollection> GetAllTodosAsync(string todoListId) { TodoCollection result = new TodoCollection(); await Task.Run(() => { result.Items = new List <Todo>(); if (todoDictionaries.ContainsKey(todoListId)) { foreach (var entry in todoDictionaries[todoListId]) { entry.Value.TodoListId = todoListId; result.Items.Add(entry.Value); } } }); return(result); }
public UserOutput(Domain.Users.User user) { UserId = user.Id; Name = user.Name; AssociatedTodos = user.AssignedTodo; }