public EntitiesController(IEntityService entityService, ICategoryService categoryService, IMapper mapper, IUserEntitiesService userEntityService) { _entityService = entityService; _categoryService = categoryService; _mapper = mapper; _userEntityService = userEntityService; }
public NotesController(INoteService notesService, IMapper mapper, IUserEntitiesService userEntitiesService, IEntityCategoriesService entityCategoriesService) { _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); _notesService = notesService ?? throw new ArgumentNullException(nameof(notesService)); _userEntitiesService = userEntitiesService ?? throw new ArgumentNullException(nameof(userEntitiesService)); _entityCategoriesService = entityCategoriesService ?? throw new ArgumentNullException(nameof(entityCategoriesService)); }