public HomeController(IAddComment addCommentCommand, IGetComments getCommentsQuery, IAddTodo addTodoCommand, IGetTodos getTodosQuery, IToggleTodo toggleTodoCommand, IClearTodos clearTodosCommand) { AddCommentCommand = addCommentCommand; GetCommentsQuery = getCommentsQuery; AddTodoCommand = addTodoCommand; GetTodosQuery = getTodosQuery; ToggleTodoCommand = toggleTodoCommand; ClearTodosCommand = clearTodosCommand; }
public ReadTodosQueryDelegetor(IGetAllTodos getAllTodosQuery, IGetTodos getTodosQuery) { _getAllTodosQuery = getAllTodosQuery; _getTodosQuery = getTodosQuery; }