Datetime ranged have any logs
This commit is contained in:
parent
fe85e1ff23
commit
d9205d425c
@ -76,6 +76,8 @@ namespace Api.BusinessLogic
|
|||||||
if (log.Date <= dateTimeRange.DateTimeStart && log.Date >= dateTimeRange.DateTimeEnd) { rangedLogs.Add(log); }
|
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);
|
return new OkObjectResult(rangedLogs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user