From a55354e48415b9f48b3a181c9f5558738476eaae Mon Sep 17 00:00:00 2001 From: TypoMustakes Date: Tue, 5 Dec 2023 14:36:53 +0100 Subject: [PATCH] Fixing nonsense --- .../Controllers/CustomerController.cs | 13 ++++++++++--- .../Controllers/MaintainerTeamController.cs | 4 ++-- .../Controllers/ServiceController.cs | 4 ++-- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/WD7UVN_HFT_2023241.Endpoint/Controllers/CustomerController.cs b/WD7UVN_HFT_2023241.Endpoint/Controllers/CustomerController.cs index 186b783..d452147 100644 --- a/WD7UVN_HFT_2023241.Endpoint/Controllers/CustomerController.cs +++ b/WD7UVN_HFT_2023241.Endpoint/Controllers/CustomerController.cs @@ -16,10 +16,17 @@ namespace WD7UVN_HFT_2023241.Endpoint this.LogicServices = LogicServices; } - [HttpGet()] - public IActionResult ReadAllCustomers() + [HttpGet("WhoUsesService/{id}")] + public IQueryable WhoUsesService(int id) { - return View(LogicServices.CRUDOperations.ReadAllCustomers()); + return LogicServices.WhoUsesService(id); + } + + [HttpGet()] + public IQueryable ReadAllCustomers() + { + + return LogicServices.CRUDOperations.ReadAllCustomers(); } [HttpGet("{id}")] diff --git a/WD7UVN_HFT_2023241.Endpoint/Controllers/MaintainerTeamController.cs b/WD7UVN_HFT_2023241.Endpoint/Controllers/MaintainerTeamController.cs index 1e7d2b4..0ead984 100644 --- a/WD7UVN_HFT_2023241.Endpoint/Controllers/MaintainerTeamController.cs +++ b/WD7UVN_HFT_2023241.Endpoint/Controllers/MaintainerTeamController.cs @@ -17,9 +17,9 @@ namespace WD7UVN_HFT_2023241.Endpoint } [HttpGet()] - public IActionResult ReadAllMaintainerTeams() + public IQueryable ReadAllMaintainerTeams() { - return View(LogicServices.CRUDOperations.ReadAllMaintainerTeams()); + return LogicServices.CRUDOperations.ReadAllMaintainerTeams(); } [HttpGet("{id}")] diff --git a/WD7UVN_HFT_2023241.Endpoint/Controllers/ServiceController.cs b/WD7UVN_HFT_2023241.Endpoint/Controllers/ServiceController.cs index e7a2a3e..1ed297a 100644 --- a/WD7UVN_HFT_2023241.Endpoint/Controllers/ServiceController.cs +++ b/WD7UVN_HFT_2023241.Endpoint/Controllers/ServiceController.cs @@ -17,9 +17,9 @@ namespace WD7UVN_HFT_2023241.Endpoint } [HttpGet()] - public IActionResult ReadAllServices() + public IQueryable ReadAllServices() { - return View(LogicServices.CRUDOperations.ReadAllServices()); + return LogicServices.CRUDOperations.ReadAllServices(); } [HttpGet("{id}")]