Add user deletion
This commit is contained in:
@ -88,5 +88,11 @@ namespace Hcs.WebApp.Services
|
||||
}
|
||||
await transaction.CommitAsync();
|
||||
}
|
||||
|
||||
public async Task<IdentityResult> DeleteUser(string userId)
|
||||
{
|
||||
var user = await userManager.FindByIdAsync(userId);
|
||||
return await userManager.DeleteAsync(user);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user