21 lines
660 B
C#
21 lines
660 B
C#
using BeWo.Service.Plugins;
|
|
using BS.Shared.DataContracts;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace KirschbaumManz.Service
|
|
{
|
|
public class CustomVacationService : VacationService
|
|
{
|
|
public override List<FeiertagDC> GetFeiertage(int year, string bundesland)
|
|
{
|
|
var list = base.GetFeiertage(year, bundesland);
|
|
DateTime osterSonntag = GetOsterSonntag(year);
|
|
list.Add(new FeiertagDC { Datum = osterSonntag.AddDays(-48), Name = "Rosenmontag" });
|
|
list.Add(new FeiertagDC { Datum = new DateTime(year, 12, 31), Name = "Silvester" });
|
|
|
|
return list;
|
|
}
|
|
}
|
|
}
|