Add user deletion

This commit is contained in:
2025-10-20 17:10:08 +09:00
parent 7741b24859
commit d7d1b09837
2 changed files with 51 additions and 3 deletions

View File

@ -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);
}
}
}