mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
fix: add IValidateableObject interface to required DTO's ensuring model validation
This commit is contained in:
@@ -60,6 +60,7 @@ namespace SharpbinV3.Server.Controllers
|
||||
[EnableRateLimiting("Strict")]
|
||||
public async Task<IActionResult> UpdateByUUID(Guid uuid, [FromBody] UpdateUserDto updatedUser)
|
||||
{
|
||||
Console.WriteLine($"{ModelState.IsValid}");
|
||||
if (!ModelState.IsValid)
|
||||
return BadRequest(ModelState);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user