コード例 #1
0
 public IActionResult CreateChartModel(string dashboardId, [FromBody] ChartModel model)
 {
     if (!ModelState.IsValid)
     {
         return(BadRequest(ModelState));
     }
     if (model == null)
     {
         return(BadRequest(ModelState));
     }
     dashboardRepository.AddChartModel(dashboardId, model);
     return(Ok("Create Success"));
 }