Cleanup on aisle DbCacheService
This commit is contained in:
@@ -109,7 +109,7 @@ public class InventoryController : Controller {
|
||||
return lst;
|
||||
}
|
||||
|
||||
// Inventory/Delete => Décrémenter un produit.
|
||||
// Inventory/Delete => Décrémenter un produit. Va aller chercher directement dans la BD.
|
||||
[EnableCors("_myAllowSpecificOrigins")]
|
||||
[HttpDelete(Name = "Inventory")]
|
||||
public ActionResult<int> Delete(int? id) {
|
||||
@@ -139,6 +139,7 @@ public class InventoryController : Controller {
|
||||
_logger.LogError(8, e.Message);
|
||||
return BadRequest();
|
||||
}
|
||||
_cache.askForRefresh();
|
||||
return rid;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user