23 lines
576 B
C#
23 lines
576 B
C#
using BeWo.Service.Plugins;
|
|
using BS.Shared.DataContracts;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MuenchenerAidsHilfeEV.Service
|
|
{
|
|
public class CustomGroupDurationCalculator : GroupDurationCalculator
|
|
{
|
|
public override GroupDurationDC CalculateGroupDuration(int personCount, int employeeCount, decimal totalDuration)
|
|
{
|
|
return new GroupDurationDC()
|
|
{
|
|
SingleDuration = ((totalDuration * employeeCount) / personCount),
|
|
TotalDuration = totalDuration
|
|
};
|
|
}
|
|
}
|
|
}
|