28 lines
761 B
C#
28 lines
761 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using BeWo.Service.Plugins;
|
|
using BS.Shared;
|
|
using BS.Shared.Core;
|
|
using BS.Shared.DataContracts.Compact;
|
|
|
|
namespace PraxisPusteblume.Plugins
|
|
{
|
|
public class CustomHomeContentGenerator : HomeContentGenerator
|
|
{
|
|
public override List<CompactPersonDC> GetPersonsHavingBirthday(DateTime birthdayUntil)
|
|
{
|
|
List<CompactPersonDC> alle = base.GetPersonsHavingBirthday(birthdayUntil);
|
|
List<CompactPersonDC> nurMitarbeiter = new List<CompactPersonDC>();
|
|
|
|
foreach (var compactPersonDc in alle)
|
|
{
|
|
if (compactPersonDc.PersonType == PersonType.Employee)
|
|
{
|
|
nurMitarbeiter.Add(compactPersonDc);
|
|
}
|
|
}
|
|
return nurMitarbeiter;
|
|
}
|
|
}
|
|
}
|