mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 06:51:55 +00:00
Add return model to AssetsController
This commit is contained in:
@@ -275,28 +275,28 @@ public async Task CreateAsset(LdapAttributeSet attributeSet)
|
||||
});
|
||||
}
|
||||
|
||||
public void DeleteUser(string uid)
|
||||
public async Task DeleteUserAsync(string uid)
|
||||
{
|
||||
string dn = PrependRDN($"uid={uid}", UsersBaseDn);
|
||||
DeleteObjectByDn(dn);
|
||||
await DeleteObjectByDnAsync(dn);
|
||||
}
|
||||
|
||||
public void DeleteGroup(string cn)
|
||||
public async Task DeleteGroupAsync(string cn)
|
||||
{
|
||||
string dn = PrependRDN($"cn={cn}", GroupsBaseDn);
|
||||
DeleteObjectByDn(dn);
|
||||
await DeleteObjectByDnAsync(dn);
|
||||
}
|
||||
|
||||
public void DeleteLocation(string cn)
|
||||
public async Task DeleteLocationAsync(string cn)
|
||||
{
|
||||
string dn = PrependRDN($"cn={cn}", LocationsBaseDn);
|
||||
DeleteObjectByDn(dn);
|
||||
await DeleteObjectByDnAsync(dn);
|
||||
}
|
||||
|
||||
public void DeleteAsset(string cn)
|
||||
public async Task DeleteAssetAsync(string cn)
|
||||
{
|
||||
string dn = PrependRDN($"cn={cn}", AssetsBaseDn);
|
||||
DeleteObjectByDn(dn);
|
||||
await DeleteObjectByDnAsync(dn);
|
||||
}
|
||||
|
||||
public async Task UpdateUser(string uid, string attributeName, string attributeValue)
|
||||
@@ -337,7 +337,7 @@ public async Task CreateAsset(LdapAttributeSet attributeSet)
|
||||
}
|
||||
}
|
||||
|
||||
public async void DeleteObjectByDn(string dn)
|
||||
public async Task DeleteObjectByDnAsync(string dn)
|
||||
{
|
||||
await _conn.DeleteAsync(dn);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user