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

@@ -91,7 +91,7 @@ public class CurrencyPeggingController(MarechaiContext context) : ControllerBase
if(userId is null) return Unauthorized();
CurrencyPegging model = await context.CurrenciesPegging.FindAsync(dto.Id);
CurrencyPegging model = await context.CurrenciesPegging.FindAsync(id);
if(model is null) return NotFound();