public PersonController(IGenericRepository <Person> repository, IGenericHandler <PersonCreateCommand> handlerCreate, IGenericHandler <PersonUpdateCommand> handlerUpdate) { _repository = repository; _handlerCreate = handlerCreate; _handlerUpdate = handlerUpdate; }
public DocumentTypeController(IGenericRepository <DocumentType> repository, IGenericHandler <DocumentTypeCreateCommand> handler, IMapper mapper, IDistributedCache distributedCache, IConfiguration configuration) { _repository = repository; _handler = handler; _mapper = mapper; _cacheStore = new DistributedCacheStore <DocumentTypeDTO>(distributedCache, Convert.ToInt32(configuration["RedisSlidingExpirationInSeconds"]), Convert.ToInt32(configuration["RedisAbsoluteExpirationInSeconds"])); }
public DocumentController(IGenericRepository <Document> repository, IGenericHandler <DocumentCreateCommand> handler) { _repository = repository; _handler = handler; }