diff --git a/Core.Inventory.Provider/Providers/Inventory/FurnitureVariantProvider.cs b/Core.Inventory.Provider/Providers/Inventory/FurnitureVariantProvider.cs index e1379c8..c5b0459 100644 --- a/Core.Inventory.Provider/Providers/Inventory/FurnitureVariantProvider.cs +++ b/Core.Inventory.Provider/Providers/Inventory/FurnitureVariantProvider.cs @@ -39,13 +39,13 @@ namespace Core.Inventory.Provider.Providers.Inventory /// /// Changes the status of a FurnitureVariant entity. /// - /// The furniture variant identifier. + /// The furniture variant identifier. /// The new status to apply. /// Cancellation token. /// The updated . - public async ValueTask ChangeStatusAsync(string _id, StatusEnum newStatus, CancellationToken cancellationToken) + public async ValueTask ChangeStatusAsync(string mongoId, StatusEnum newStatus, CancellationToken cancellationToken) { - var entity = await repository.FindByIdAsync(_id); + var entity = await repository.FindByIdAsync(mongoId); entity.Status = newStatus; await repository.ReplaceOneAsync(entity); return entity; @@ -89,17 +89,17 @@ namespace Core.Inventory.Provider.Providers.Inventory /// /// Gets a FurnitureVariant entity by its ID. /// - /// The furniture variant identifier. + /// The furniture variant identifier. /// Cancellation token. /// The corresponding . - public async ValueTask GetByIdAsync(string _id, CancellationToken cancellationToken) + public async ValueTask GetByIdAsync(string mongoId, CancellationToken cancellationToken) { - var cacheKey = CacheKeyHelper.GenerateCacheKey(this, nameof(GetByIdAsync), _id); + var cacheKey = CacheKeyHelper.GenerateCacheKey(this, nameof(GetByIdAsync), mongoId); var cached = await cacheProvider.GetAsync(cacheKey); if (cached is not null) return cached; - var result = await repository.FindByIdAsync(_id); + var result = await repository.FindByIdAsync(mongoId); await cacheProvider.SetAsync(cacheKey, result); return result; }