mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 06:51:55 +00:00
Added Inventory, Assets, Locations, Users pages
This commit is contained in:
@@ -22,7 +22,13 @@ public class HomeController : Controller
|
||||
[Authorize]
|
||||
[HttpGet("Index")]
|
||||
[HttpGet("/")]
|
||||
public async Task<IActionResult> Index()
|
||||
public ActionResult Index()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
[HttpGet("Assets")]
|
||||
public async Task<IActionResult> Assets()
|
||||
{
|
||||
IEnumerable<UserModel> users = await _ldap.ListUsersAsync();
|
||||
IEnumerable<AssetModel> assets = await _ldap.ListDeviceAsync();
|
||||
@@ -41,6 +47,24 @@ public class HomeController : Controller
|
||||
return View(new HomeIndexViewModel() { AssetsTableViewModels = assetsTableViewModels });
|
||||
}
|
||||
|
||||
[HttpGet("Inventory")]
|
||||
public ActionResult Inventory()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
[HttpGet("Locations")]
|
||||
public ActionResult Locations()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
[HttpGet("Users")]
|
||||
public ActionResult Users()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
[HttpPost("Login")]
|
||||
public async Task<ActionResult> Login(string username, string password)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user