# Interface IDisplayDetailConfigRepository

Namespace
  adas_core.Application.Repositories.Interfaces

Assembly
  adas-core.Application.dll

    public interface IDisplayDetailConfigRepository : IMongoRepository<CardDetailsConfig>

Inherited Members
  IMongoRepository<CardDetailsConfig>.Collection
  IMongoRepository<CardDetailsConfig>.GetCollectionName()
  IMongoRepository<CardDetailsConfig>.InsertOneAsync(CardDetailsConfig)
  IMongoRepository<CardDetailsConfig>.DeleteAsync(ObjectId)
  IMongoRepository<CardDetailsConfig>.UpdateOneAsync(ObjectId, CardDetailsConfig)

Extension Methods
  NumberUtils.IsNumber(object)
  NumberUtils.ToDouble(object)
  ObjectUtils.ToStr(object?)

## Methods

### DeleteOne(ObjectId)

Deletes a single CardDetailsConfig identified by its unique identifier.

    Task<CardDetailsConfig?> DeleteOne(ObjectId configId)

#### Parameters

`configId` ObjectId

  The unique identifier of the CardDetailsConfig to delete.

#### Returns

Task<CardDetailsConfig>

  A task that represents the asynchronous operation, containing the deleted CardDetailsConfig, or `null` if no matching configuration was found.

### GetAll()

Asynchronously retrieves all card details configurations from the data source.

    Task<List<CardDetailsConfig>> GetAll()

#### Returns

Task<List<CardDetailsConfig>>

  A task that represents the asynchronous operation. The task result contains a list of all CardDetailsConfig entries.

### GetById(ObjectId)

Retrieves a CardDetailsConfig by its unique identifier. Returns null when no matching configuration is found.

    Task<CardDetailsConfig?> GetById(ObjectId configId)

#### Parameters

`configId` ObjectId

  The identifier of the card details configuration to retrieve.

#### Returns

Task<CardDetailsConfig>

  A task that represents the asynchronous operation, containing the matching CardDetailsConfig or null if not found.

### InsertOneAsyncAndReturn(CardDetailsConfig)

Asynchronously inserts a new card details configuration and returns the inserted entity.

    Task<CardDetailsConfig?> InsertOneAsyncAndReturn(CardDetailsConfig config)

#### Parameters

`config` CardDetailsConfig

  The card details configuration to insert.

#### Returns

Task<CardDetailsConfig>

  A task representing the asynchronous operation, containing the inserted CardDetailsConfig, or `null` if no entity was returned.

### UpdateOne(CardDetailsConfig?)

Updates a single card details configuration record asynchronously.

    Task<UpdateResponse<CardDetailsConfig?>> UpdateOne(CardDetailsConfig? config)

#### Parameters

`config` CardDetailsConfig

  The card details configuration to update. May be null.

#### Returns

Task<UpdateResponse<CardDetailsConfig>>

  A task that represents the asynchronous operation, containing the update response with the updated CardDetailsConfig or null when no configuration is found.