public ToDoMaintenanceViewModel( IToDoClient toDoClient, IMetaClient metaClient, Models.ToDo toDo) { _toDoClient = toDoClient; _metaClient = metaClient; _toDo = toDo; Initialize(); }
public ToDoController(IToDoClient todo, IMapper mapper, ILogger <ToDoController> logger) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _todo = todo ?? throw new ArgumentNullException(nameof(todo)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }