35 lines
832 B
C#
35 lines
832 B
C#
|
|
using BS.Shared.DataContracts;
|
|||
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
|
|||
|
|
namespace Shared.Extensions
|
|||
|
|
{
|
|||
|
|
public static class DakotaExtensions
|
|||
|
|
{
|
|||
|
|
public static bool IsSozioTherapie(this ServiceInvoiceDC serviceDC)
|
|||
|
|
=> IsSozioTherapie(serviceDC?.InvoiceBase);
|
|||
|
|
|
|||
|
|
public static bool IsSozioTherapie(this InvoiceBaseDC invoiceBase)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
if (invoiceBase.InvoiceTitle.ToLower().Contains("soziotherapie"))
|
|||
|
|
return true;
|
|||
|
|
|
|||
|
|
if (invoiceBase.InvoiceId.ToLower().Contains("soziotherapie"))
|
|||
|
|
return true;
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
return false;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|