Removed duplicate API endpoints
This commit is contained in:
@@ -16,16 +16,9 @@ namespace WD7UVN_HFT_2023241.Endpoint
|
|||||||
this.LogicServices = LogicServices;
|
this.LogicServices = LogicServices;
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet("WhoUsesService/{id}")]
|
|
||||||
public IQueryable<Customer> WhoUsesService(int id)
|
|
||||||
{
|
|
||||||
return LogicServices.WhoUsesService(id);
|
|
||||||
}
|
|
||||||
|
|
||||||
[HttpGet()]
|
[HttpGet()]
|
||||||
public IQueryable<Customer> ReadAllCustomers()
|
public IQueryable<Customer> ReadAllCustomers()
|
||||||
{
|
{
|
||||||
|
|
||||||
return LogicServices.CRUDOperations.ReadAllCustomers();
|
return LogicServices.CRUDOperations.ReadAllCustomers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,18 +16,6 @@ namespace WD7UVN_HFT_2023241.Endpoint
|
|||||||
this.LogicServices = LogicServices;
|
this.LogicServices = LogicServices;
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet("GetSubordinates/{id}")]
|
|
||||||
public IQueryable<Employee> GetSubordinates(int id)
|
|
||||||
{
|
|
||||||
return LogicServices.GetSubordinates(id);
|
|
||||||
}
|
|
||||||
|
|
||||||
[HttpGet("WhoWorksInMaintainerTeam/{id}")]
|
|
||||||
public IQueryable<Employee> WhoWorksInMaintainerTeam(int id)
|
|
||||||
{
|
|
||||||
return LogicServices.WhoWorksInMaintainerTeam(id);
|
|
||||||
}
|
|
||||||
|
|
||||||
[HttpGet()]
|
[HttpGet()]
|
||||||
public IQueryable<Employee> ReadAllEmployees()
|
public IQueryable<Employee> ReadAllEmployees()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user