Fixed request format in controllers
This commit is contained in:
@@ -23,7 +23,7 @@ namespace WD7UVN_HFT_2023241.Endpoint
|
|||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet("{id}")]
|
[HttpGet("{id}")]
|
||||||
public Customer ReadCustomer([FromQuery] int id)
|
public Customer ReadCustomer(int id)
|
||||||
{
|
{
|
||||||
return LogicServices.CRUDOperations.ReadCustomer(id);
|
return LogicServices.CRUDOperations.ReadCustomer(id);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ namespace WD7UVN_HFT_2023241.Endpoint
|
|||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet("{id}")]
|
[HttpGet("{id}")]
|
||||||
public Employee ReadEmployee([FromQuery] int id)
|
public Employee ReadEmployee(int id)
|
||||||
{
|
{
|
||||||
return LogicServices.CRUDOperations.ReadEmployee(id);
|
return LogicServices.CRUDOperations.ReadEmployee(id);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ namespace WD7UVN_HFT_2023241.Endpoint
|
|||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet("{id}")]
|
[HttpGet("{id}")]
|
||||||
public MaintainerTeam ReadMaintainerTeam([FromQuery] int id)
|
public MaintainerTeam ReadMaintainerTeam(int id)
|
||||||
{
|
{
|
||||||
return LogicServices.CRUDOperations.ReadMaintainerTeam(id);
|
return LogicServices.CRUDOperations.ReadMaintainerTeam(id);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ namespace WD7UVN_HFT_2023241.Endpoint
|
|||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet("{id}")]
|
[HttpGet("{id}")]
|
||||||
public Service ReadService([FromQuery] int id)
|
public Service ReadService(int id)
|
||||||
{
|
{
|
||||||
return LogicServices.CRUDOperations.ReadService(id);
|
return LogicServices.CRUDOperations.ReadService(id);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ namespace WD7UVN_HFT_2023241.Endpoint
|
|||||||
this.LogicServices = LogicServices;
|
this.LogicServices = LogicServices;
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet("{id}")]
|
[HttpGet()]
|
||||||
public IQueryable<Employee> GetSubordinates([FromQuery] int id)
|
public IQueryable<Employee> GetSubordinates([FromQuery] int id)
|
||||||
{
|
{
|
||||||
return LogicServices.GetSubordinates(id);
|
return LogicServices.GetSubordinates(id);
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ namespace WD7UVN_HFT_2023241.Endpoint
|
|||||||
this.LogicServices = LogicServices;
|
this.LogicServices = LogicServices;
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet("{id}")]
|
[HttpGet()]
|
||||||
public Employee WhoIsResponsibleForService([FromQuery] int id)
|
public Employee WhoIsResponsibleForService([FromQuery] int id)
|
||||||
{
|
{
|
||||||
return LogicServices.WhoIsResponsibleForService(id);
|
return LogicServices.WhoIsResponsibleForService(id);
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ namespace WD7UVN_HFT_2023241.Endpoint
|
|||||||
this.LogicServices = LogicServices;
|
this.LogicServices = LogicServices;
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet("{id}")]
|
[HttpGet()]
|
||||||
public IQueryable<Customer> WhoUsesService([FromQuery] int id)
|
public IQueryable<Customer> WhoUsesService([FromQuery] int id)
|
||||||
{
|
{
|
||||||
return LogicServices.WhoUsesService(id);
|
return LogicServices.WhoUsesService(id);
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ namespace WD7UVN_HFT_2023241.Endpoint
|
|||||||
this.LogicServices = LogicServices;
|
this.LogicServices = LogicServices;
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet("{id}")]
|
[HttpGet()]
|
||||||
public IQueryable<Customer> WhoUsesService([FromQuery] int id)
|
public IQueryable<Customer> WhoUsesService([FromQuery] int id)
|
||||||
{
|
{
|
||||||
return LogicServices.WhoUsesService(id);
|
return LogicServices.WhoUsesService(id);
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ namespace WD7UVN_HFT_2023241.Endpoint
|
|||||||
this.LogicServices = LogicServices;
|
this.LogicServices = LogicServices;
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet("{id}")]
|
[HttpGet()]
|
||||||
public IQueryable<Employee> WhoWorksInMaintainerTeam([FromQuery] int id)
|
public IQueryable<Employee> WhoWorksInMaintainerTeam([FromQuery] int id)
|
||||||
{
|
{
|
||||||
return LogicServices.WhoWorksInMaintainerTeam(id);
|
return LogicServices.WhoWorksInMaintainerTeam(id);
|
||||||
|
|||||||
Reference in New Issue
Block a user