Merge pull request #69 from LD-Reborn/feature/issue_65

Feature: Add return model to AssetsController
This commit is contained in:
LD50
2025-10-05 15:03:48 +02:00
committed by GitHub
6 changed files with 45 additions and 23 deletions

View File

@@ -47,11 +47,11 @@ public class UsersController : Controller
[HttpGet("Delete")]
public async Task<bool> Delete(string uid)
{
return await Task.Run(() =>
return await Task.Run(async () =>
{
try
{
_ldap.DeleteUser(uid);
await _ldap.DeleteUserAsync(uid);
return true;
}
catch (Exception)