public CategoryCreateCommandHandler(IMapper mapper, IReadonlyCategoryRepository readonlyCategoryRepository, IWriteonlyCategoryRepository writeonlyCategoryRepository) { _mapper = mapper; _readonlyCategoryRepository = readonlyCategoryRepository; _writeonlyCategoryRepository = writeonlyCategoryRepository; }
public CategoryService(IReadonlyCategoryRepository readonlyCategoryRepository, IWriteonlyCategoryRepository writeonlyCategoryRepository) { _readonlyCategoryRepository = readonlyCategoryRepository; _writeonlyCategoryRepository = writeonlyCategoryRepository; }