mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 06:51:55 +00:00
Merge pull request #69 from LD-Reborn/feature/issue_65
Feature: Add return model to AssetsController
This commit is contained in:
@@ -47,11 +47,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)
|
||||
|
||||
Reference in New Issue
Block a user