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}")]