public CustomerController(ICodeGenericRepository <CustomerEntity, CustomerDto, CustomerDto> codeGenericRepository, DatabaseContext context) : base(codeGenericRepository, context) { _codeGenericRepository = codeGenericRepository; _context = context; _entity = _context.Set <CustomerEntity>(); }
public CodeGenericController(ICodeGenericRepository <TEntity, TDto, TCreationDto> genericRepository, DatabaseContext context) : base(genericRepository, context) { _context = context; _entities = _context.Set <TEntity>(); _genericRepository = genericRepository; }