public IActionResult DeleteChartModel(string dashboardId, string chartModelId) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } dashboardRepository.DeleteChartModel(dashboardId, chartModelId); return(Ok("Delete Success")); }