Created src folder, created docs folder, added Pflichtenheft

This commit is contained in:
2025-09-27 14:31:29 +02:00
parent b7319c1ffa
commit cc1f55658f
85 changed files with 178 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
// Controllers/LocationsController.cs
using Berufsschule_HAM.Services;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
[Route("[controller]")]
public class LocationsController : Controller
{
private readonly LdapService _ldap;
public LocationsController(LdapService ldap) => _ldap = ldap;
[HttpGet("Index")]
public async Task<IEnumerable<Dictionary<string, string>>> Index()
{
IEnumerable<Dictionary<string, string>> list = await _ldap.ListLocationsAsync();
return list;
}
}