This commit is contained in:
@@ -152,11 +152,11 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Get service (physical) address for this Unit
|
||||
/// Get service address for this Unit
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns>Service address</returns>
|
||||
[HttpGet("service-address/{id}")]
|
||||
[HttpGet("address/{id}")]
|
||||
public async Task<IActionResult> GetUnitServiceAddress([FromRoute] long id)
|
||||
{
|
||||
if (!serverState.IsOpen)
|
||||
@@ -171,7 +171,7 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
return Ok(ApiOkResponse.Response(new
|
||||
{
|
||||
unit = new AddressRecord(unt.Address, unt.City, unt.Region, unt.Country, unt.Latitude, unt.Longitude)
|
||||
unit = new AddressRecord(unt.Serial, unt.Address, unt.City, unt.Region, unt.Country, unt.Latitude, unt.Longitude)
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user