Refactor controllers to use route parameters for UpdateAsync methods and improve consistency in model retrieval

This commit is contained in:
2025-11-13 21:31:49 +00:00
parent 4a2d46f3b0
commit 76bebc68b7
26 changed files with 72 additions and 72 deletions

View File

@@ -83,7 +83,7 @@ public class CurrencyInflationController(MarechaiContext context) : ControllerBa
if(userId is null) return Unauthorized();
CurrencyInflation model = await context.CurrenciesInflation.FindAsync(dto.Id);
CurrencyInflation model = await context.CurrenciesInflation.FindAsync(id);
if(model is null) return NotFound();