diff --git a/backend/Api/Organisation/DeparmentController.cs b/backend/Api/Organisation/DeparmentController.cs index bb4d620d..39d3f134 100644 --- a/backend/Api/Organisation/DeparmentController.cs +++ b/backend/Api/Organisation/DeparmentController.cs @@ -32,11 +32,11 @@ public ActionResult> GetDepartment([FromRoute] string .Include(o => o.Departments) .Single(o => o.UrlKey == orgUrlKey) .Departments - .Select(d => new DepartmentReadModel(d.Id, d.Name)) + .Select(d => new DepartmentReadModel(d.Id, d.Name, d.Hotkey)) .ToList(); } } -public record DepartmentReadModel(string Id, string Name); +public record DepartmentReadModel(string Id, string Name, int? Hotkey); public record OrganisationReadModel(string Name, string UrlKey); \ No newline at end of file