Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public UserOutput(Domain.Users.User user)
 {
     UserId          = user.Id;
     Name            = user.Name;
     AssociatedTodos = user.AssignedTodo;
 }