Datetime ranged have any logs

This commit is contained in:
Jeas0001 2025-03-31 10:48:20 +02:00
parent fe85e1ff23
commit d9205d425c

View File

@ -76,6 +76,8 @@ namespace Api.BusinessLogic
if (log.Date <= dateTimeRange.DateTimeStart && log.Date >= dateTimeRange.DateTimeEnd) { rangedLogs.Add(log); }
}
if (rangedLogs.Count == 0) { return new ConflictObjectResult(new { message = "There is no logs for that periode" }); }
return new OkObjectResult(rangedLogs);
}