31 lines
732 B
C#
31 lines
732 B
C#
using BeWo.Data.Access;
|
|
using BeWo.Data.Entities;
|
|
using BeWo.Service.Plugins;
|
|
using BS.Shared;
|
|
using BS.Shared.DataContracts;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
namespace SHKServiceSBD.Service
|
|
{
|
|
public class CustomVacationService : VacationService
|
|
{
|
|
public override List<FeiertagDC> GetFeiertage(int year, String bundesland)
|
|
{
|
|
List<FeiertagDC> list = base.GetFeiertage(year, bundesland);
|
|
if (year >= 2024)
|
|
{
|
|
list.Add(new FeiertagDC { Datum = new DateTime(year, 12, 31), Name = "Silvester" });
|
|
}
|
|
|
|
return list;
|
|
}
|
|
|
|
}
|
|
}
|