51 lines
1.0 KiB
C#
51 lines
1.0 KiB
C#
using BeWo.Data.Access;
|
|
using BeWo.Service.ServiceContracts;
|
|
using DevExpress.Pdf.Native.BouncyCastle.Ocsp;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.ServiceModel;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BeWo.Service.ServiceImplementations
|
|
{
|
|
[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall, ConcurrencyMode = ConcurrencyMode.Single)]
|
|
public class AdminServiceImp : IAdminService
|
|
{
|
|
public string Test()
|
|
{
|
|
return "Test erfolgreich!";
|
|
}
|
|
|
|
public string Echo(string echo)
|
|
{
|
|
return echo;
|
|
}
|
|
|
|
public object GetGkvAbrechnungSumme(DateTime start, DateTime end)
|
|
{
|
|
if(start == default(DateTime))
|
|
{
|
|
return "Start darf nicht default(DateTime) sein";
|
|
}
|
|
|
|
if(end == default(DateTime))
|
|
{
|
|
return "End darf nicht default(DateTime) sein";
|
|
}
|
|
|
|
var sum = DAOFactory.ScriptDAO.GetGkvSumByDateRange(start, end);
|
|
|
|
if (sum is decimal s)
|
|
{
|
|
return sum;
|
|
}
|
|
else
|
|
{
|
|
return "Sum ist null";
|
|
};
|
|
}
|
|
}
|
|
}
|