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