mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 06:51:55 +00:00
Added groups view model, implemented basic groups table view
This commit is contained in:
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user