Fix ReportController.GetReportsDateRangeAsync return 204 on default values

This commit is contained in:
ngfrolov 2023-12-05 14:07:56 +05:00
parent ed67556742
commit 3e6f43a4a6
Signed by untrusted user who does not match committer: ng.frolov
GPG Key ID: E99907A0357B29A7

View File

@ -150,6 +150,9 @@ namespace AsbCloudWebApi.Controllers
if (wellReportsDatesRange is null)
return NoContent();
if (wellReportsDatesRange.From == wellReportsDatesRange.To)
return NoContent();
return Ok(wellReportsDatesRange);
}
}