diff --git a/FrontendWebApi/ApiControllers/GraphManageController.cs b/FrontendWebApi/ApiControllers/GraphManageController.cs index aa62a28..53abdb0 100644 --- a/FrontendWebApi/ApiControllers/GraphManageController.cs +++ b/FrontendWebApi/ApiControllers/GraphManageController.cs @@ -13,8 +13,8 @@ using System.IO; namespace FrontendWebApi.ApiControllers { - [Route("api/[controller]")] - [ApiController] + //[Route("api/[controller]")] + //[ApiController] public class GraphManageController : MyBaseApiController { private readonly IBackendRepository backendRepository; @@ -61,7 +61,7 @@ namespace FrontendWebApi.ApiControllers } [HttpPost] - public async Task>> SubSysList(int main_system_tag) + public async Task>> SubSysList([FromBody] int main_system_tag) { ApiResult> apiResult = new ApiResult>(); List sub_system_list = new List(); @@ -91,7 +91,7 @@ namespace FrontendWebApi.ApiControllers } [HttpPost] - public async Task>> GraManList(GraphInfo gi) + public async Task>> GraManList([FromBody] GraphInfo gi) { ApiResult> apiResult = new ApiResult>(); List graManList = new List(); diff --git a/FrontendWebApi/Models/GraphManage.cs b/FrontendWebApi/Models/GraphManage.cs index 950bca0..88ee01d 100644 --- a/FrontendWebApi/Models/GraphManage.cs +++ b/FrontendWebApi/Models/GraphManage.cs @@ -37,7 +37,7 @@ namespace FrontendWebApi.Models { public string code { get; set; } public string main_system_tag { get; set; } - public List sub_system_tag { get; set; } + public List sub_system_tag { get; set; } = new List{ }; public string keyWord { get; set; } } }