diff --git a/FrontendWebApi/ApiControllers/BuildController.cs b/FrontendWebApi/ApiControllers/BuildController.cs index a558312..31289f0 100644 --- a/FrontendWebApi/ApiControllers/BuildController.cs +++ b/FrontendWebApi/ApiControllers/BuildController.cs @@ -383,7 +383,7 @@ namespace FrontendWebApi.ApiControllers string sql = $@" SELECT device_building_tag, - device_system_tag + sub_system_tag FROM building_menu WHERE building_tag = @building_tag AND main_system_tag = @main_system_tag diff --git a/FrontendWebApi/Models/Build.cs b/FrontendWebApi/Models/Build.cs index 1828f21..4bc8352 100644 --- a/FrontendWebApi/Models/Build.cs +++ b/FrontendWebApi/Models/Build.cs @@ -131,7 +131,7 @@ namespace FrontendWebApi.Models public class BuildingSystemTagName { public string device_building_tag { get; set; } - public string device_system_tag { get; set; } + public string sub_system_tag { get; set; } } public class DeviceFloor : Device