Add return model to AssetsController

This commit is contained in:
anomny
2025-10-05 14:50:59 +02:00
parent 35d95b7783
commit d12ac659f5
6 changed files with 45 additions and 23 deletions

View File

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