17 lines
626 B
C#
17 lines
626 B
C#
namespace PARR.BLL.Services.Interfaces
|
|
{
|
|
public delegate IQueryable<DateOnly> GetWeekendsDelegate(DateOnly start, DateOnly end);
|
|
|
|
public interface ICalendarService
|
|
{
|
|
/// <summary>
|
|
/// Получить только рабочие дни за период
|
|
/// </summary>
|
|
/// <param name="startPeriod"></param>
|
|
/// <param name="distributionPeriod"></param>
|
|
/// <param name="getWeekends"></param>
|
|
/// <returns></returns>
|
|
List<DateOnly> GetWorkDatesForPeriod(DateOnly startPeriod, TimeSpan distributionPeriod, GetWeekendsDelegate getWeekends);
|
|
}
|
|
}
|