fix delete return codes
All checks were successful
Build and Deploy API / build-and-deploy (push) Successful in 8s
All checks were successful
Build and Deploy API / build-and-deploy (push) Successful in 8s
This commit is contained in:
@@ -57,7 +57,7 @@ public class UsersController : ControllerBase
|
||||
{
|
||||
var success = await service_.Delete(id);
|
||||
|
||||
if (success) return NotFound();
|
||||
if (!success) return NotFound();
|
||||
|
||||
return NoContent();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user