Add function to get the tunnel flights between dates

This commit is contained in:
Sébastien ANDRE
2023-06-22 20:24:28 +02:00
parent ef15986db3
commit 894f283654
5 changed files with 35 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
using skydiveLogs_api.Domain;
using skydiveLogs_api.DomainBusiness.Interfaces;
using skydiveLogs_api.DomainService.Repositories;
using System;
using System.Collections.Generic;
namespace skydiveLogs_api.DomainBusiness
@@ -60,6 +61,15 @@ namespace skydiveLogs_api.DomainBusiness
return _tunnelFlightRepository.GetBetweenIndex(_identityService.ConnectedUser, beginIndex, endIndex);
}
public IEnumerable<TunnelFlight> GetTunnelFlightByDates(string beginDate, string endDate)
{
var convertedBeginDate = Convert.ToDateTime(beginDate);
var convertedEndDate = Convert.ToDateTime(endDate);
return _tunnelFlightRepository.GetBetweenDate(_identityService.ConnectedUser, convertedBeginDate, convertedEndDate);
}
#endregion Public Methods
#region Private Fields