From 1df31df98edaa80872e70a9ff1b707b86a62a847 Mon Sep 17 00:00:00 2001 From: TypoMustakes Date: Thu, 7 Dec 2023 20:01:50 +0100 Subject: [PATCH] Removed duplicate API endpoints --- .../Controllers/CustomerController.cs | 7 ------- .../Controllers/EmployeeController.cs | 12 ------------ 2 files changed, 19 deletions(-) diff --git a/WD7UVN_HFT_2023241.Endpoint/Controllers/CustomerController.cs b/WD7UVN_HFT_2023241.Endpoint/Controllers/CustomerController.cs index 0cd5daa..a1df1b5 100644 --- a/WD7UVN_HFT_2023241.Endpoint/Controllers/CustomerController.cs +++ b/WD7UVN_HFT_2023241.Endpoint/Controllers/CustomerController.cs @@ -16,16 +16,9 @@ namespace WD7UVN_HFT_2023241.Endpoint this.LogicServices = LogicServices; } - [HttpGet("WhoUsesService/{id}")] - public IQueryable WhoUsesService(int id) - { - return LogicServices.WhoUsesService(id); - } - [HttpGet()] public IQueryable ReadAllCustomers() { - return LogicServices.CRUDOperations.ReadAllCustomers(); } diff --git a/WD7UVN_HFT_2023241.Endpoint/Controllers/EmployeeController.cs b/WD7UVN_HFT_2023241.Endpoint/Controllers/EmployeeController.cs index c30ddce..9e87735 100644 --- a/WD7UVN_HFT_2023241.Endpoint/Controllers/EmployeeController.cs +++ b/WD7UVN_HFT_2023241.Endpoint/Controllers/EmployeeController.cs @@ -16,18 +16,6 @@ namespace WD7UVN_HFT_2023241.Endpoint this.LogicServices = LogicServices; } - [HttpGet("GetSubordinates/{id}")] - public IQueryable GetSubordinates(int id) - { - return LogicServices.GetSubordinates(id); - } - - [HttpGet("WhoWorksInMaintainerTeam/{id}")] - public IQueryable WhoWorksInMaintainerTeam(int id) - { - return LogicServices.WhoWorksInMaintainerTeam(id); - } - [HttpGet()] public IQueryable ReadAllEmployees() {