IdentityUsers use Guid instead of int ids
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:
@@ -44,7 +44,7 @@ public class UsersController : ControllerBase {
|
||||
|
||||
[Authorize(Policy = "SensitiveDataRead")]
|
||||
[HttpGet("{id:int}")]
|
||||
public async Task<ActionResult<User>> getUser(int id) {
|
||||
public async Task<ActionResult<User>> getUser(Guid id) {
|
||||
|
||||
var user = await service_.Get(id);
|
||||
|
||||
@@ -62,7 +62,7 @@ public class UsersController : ControllerBase {
|
||||
|
||||
[Authorize(Policy = "SensitiveDataModify")]
|
||||
[HttpDelete("{id}")]
|
||||
public async Task<ActionResult> deleteUser(int id) {
|
||||
public async Task<ActionResult> deleteUser(Guid id) {
|
||||
|
||||
var success = await service_.Delete(id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user