mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Refactor controllers to use route parameters for UpdateAsync methods and improve consistency in model retrieval
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user