Added groups view model, implemented basic groups table view

This commit is contained in:
2025-10-11 13:29:59 +02:00
parent d9127736d9
commit fd5dcb5618
5 changed files with 65 additions and 20 deletions

View File

@@ -94,7 +94,8 @@ public class HomeController : Controller
[HttpGet("Groups")]
public async Task<ActionResult> GroupsAsync()
{
return View(); // TODO: Add viewmodel
IEnumerable<GroupModel> groups = await _ldap.ListGroupsAsync();
return View(new GroupsIndexViewModel(groups));
}
[HttpPost("Login")]