mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 23:11:54 +00:00
Add return model to AssetsController
This commit is contained in:
@@ -26,11 +26,11 @@ public class LocationsController : Controller
|
||||
public async Task<bool> Delete(string cn)
|
||||
{
|
||||
if (cn is null) { return false; }
|
||||
return await Task.Run(() =>
|
||||
return await Task.Run(async () =>
|
||||
{
|
||||
try
|
||||
{
|
||||
_ldap.DeleteLocation(cn);
|
||||
await _ldap.DeleteLocationAsync(cn);
|
||||
return true;
|
||||
}
|
||||
catch (Exception)
|
||||
|
||||
Reference in New Issue
Block a user