init
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
namespace Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Logic
|
||||
{
|
||||
using System;
|
||||
|
||||
public static class FelmentesLogic
|
||||
{
|
||||
public static bool CalculateIsNowFelmentettByDatum(DateTime examinedDate, DateTime? felmentesKezdetDatuma, DateTime? felmentesVegDatuma)
|
||||
=> (!felmentesKezdetDatuma.HasValue && !felmentesVegDatuma.HasValue)
|
||||
|| (!felmentesKezdetDatuma.HasValue && examinedDate <= felmentesVegDatuma)
|
||||
|| (!felmentesVegDatuma.HasValue && felmentesKezdetDatuma <= examinedDate)
|
||||
|| (felmentesKezdetDatuma <= examinedDate && examinedDate <= felmentesVegDatuma);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user