# Interface IPoCSettingsRepository

Namespace
  adas_core.Application.Repositories.Interfaces

Assembly
  adas-core.Application.dll

    public interface IPoCSettingsRepository : IMongoRepository<PoCSettings>

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

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

## Methods

### Delete(ObjectId)

Asynchronously deletes the entity identified by the specified MongoDB.Bson.ObjectId.

    Task Delete(ObjectId id)

#### Parameters

`id` ObjectId

  The MongoDB.Bson.ObjectId of the entity to delete.

#### Returns

Task

### FindAll()

Asynchronously retrieves all PoCSettings records.

    Task<List<PoCSettings>> FindAll()

#### Returns

Task<List<PoCSettings>>

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

### FindById(ObjectId)

Retrieves the PoC (Proof of Concept) settings associated with the specified identifier.

    Task<PoCSettings?> FindById(ObjectId id)

#### Parameters

`id` ObjectId

  The unique identifier of the PoC settings to retrieve.

#### Returns

Task<PoCSettings>

  A task that represents the asynchronous operation. The result contains the matching PoCSettings if found, or `null` when no settings exist for the given identifier.

### FindByLocation(PatientLocation)

Asynchronously retrieves the Point of Care (PoC) settings associated with the specified patient location.

    Task<PoCSettings?> FindByLocation(PatientLocation location)

#### Parameters

`location` PatientLocation

  The patient location used to look up the corresponding PoC settings.

#### Returns

Task<PoCSettings>

  A task that returns the matching PoCSettings if found; otherwise, `null`.

### Update(PoCSettings)

Updates the PoC (Proof of Concept) settings with the provided values.

    Task Update(PoCSettings pocSettings)

#### Parameters

`pocSettings` PoCSettings

  The PoC settings to be applied.

#### Returns

Task

  A task that represents the asynchronous update operation.