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:
@@ -17,7 +17,7 @@ public class UserService {
|
||||
return await db_.Users.ToListAsync();
|
||||
}
|
||||
|
||||
public async Task<User?> Get(int id) {
|
||||
public async Task<User?> Get(Guid id) {
|
||||
return await db_.Users.FindAsync(id);
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ public class UserService {
|
||||
return await db_.Users.FirstOrDefaultAsync(u => u.UserName == name);
|
||||
}
|
||||
|
||||
public async Task<bool> Delete(int id) {
|
||||
public async Task<bool> Delete(Guid id) {
|
||||
User? User = await db_.Users.FindAsync(id);
|
||||
if(User != null) {
|
||||
db_.Users.Remove(User);
|
||||
|
||||
Reference in New Issue
Block a user