diff --git a/WebApi_data_value/Controllers/Violation_car_tableController.cs b/WebApi_data_value/Controllers/Violation_car_tableController.cs
index 964f1e4..574327f 100644
--- a/WebApi_data_value/Controllers/Violation_car_tableController.cs
+++ b/WebApi_data_value/Controllers/Violation_car_tableController.cs
@@ -179,7 +179,7 @@ namespace WebApi_data_value.Controllers
}
#endregion
- #region
+ #region 尋找違規次數最多
///
/// 尋找違規次數最多
///
@@ -204,6 +204,39 @@ namespace WebApi_data_value.Controllers
#endregion
+ #region 尋找規定時間內每日違規人數
+ ///
+ /// 尋找規定時間內每日違規人數
+ ///
+ ///
+ [HttpGet("get_day_violation-{day}")]
+ public async Task> Getdayvalue(int day)
+ {
+ // 取得今日日期
+ DateTime today = DateTime.Today;
+
+ // 取得 30 天前的日期
+ DateTime DaysAgo = today.AddDays(-day);
+ var dateValue = new List