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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user