Merge pull request #190 from LD-Reborn/189-bug-unused-models-retrieved-from-ldap-in-homecontroller

Removed unused LDAP data retrieval
This commit is contained in:
LD50
2025-10-26 16:56:53 +01:00
committed by GitHub

View File

@@ -32,9 +32,7 @@ public class HomeController : Controller
[HttpGet("Assets")]
public async Task<IActionResult> Assets()
{
IEnumerable<UserModel> users = await _ldap.ListUsersAsync();
IEnumerable<AssetModel> assets = await _ldap.ListDeviceAsync();
IEnumerable<LocationModel> locations = await _ldap.ListLocationsAsync();
List<AssetsTableViewModel> assetsTableViewModels = [];
foreach (AssetModel asset in assets)
{