25 lines
668 B
C#
25 lines
668 B
C#
using BeWo.Service.Plugins;
|
|
using BS.Shared.DataContracts;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace BetreuungsbueroBaak.Service
|
|
{
|
|
public class CustomVacationService : VacationService
|
|
{
|
|
public override List<FeiertagDC> GetFeiertage(int year, string bundesland)
|
|
{
|
|
var feiertage = base.GetFeiertage(year, bundesland);
|
|
|
|
if (year >= 2025)
|
|
{
|
|
var weihnachten = feiertage.FirstOrDefault(f => f.Name == "Heilig Abend");
|
|
if (weihnachten != null)
|
|
feiertage.Remove(weihnachten);
|
|
}
|
|
|
|
return feiertage;
|
|
}
|
|
}
|
|
}
|