Пример #1
0
 public TaskController(
     ITaskRepository taskRepository,
     ITaskFacade taskFacade,
     IMapper mapper
     )
 {
     _taskRepository = taskRepository ?? throw new ArgumentNullException(nameof(taskRepository));
     _taskFacade     = taskFacade ?? throw new ArgumentNullException(nameof(taskFacade));
     _mapper         = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
 public TaskController()
 {
     _taskFacade = new TaskFacade(new TaskRepository());
 }
 public TaskController(ITaskFacade taskFacade)
 {
     _taskFacade = taskFacade;
 }