This commit is contained in:
2024-03-13 00:33:46 +01:00
commit e124a47765
19374 changed files with 9806149 additions and 0 deletions
@@ -0,0 +1,25 @@
using System;
using Kreta.Core.Exceptions;
using Kreta.Ellenorzo.Domain.VN.Common;
namespace Kreta.Ellenorzo.BL.VN.Bejelentes
{
internal static class BejelentesSubqueries
{
internal static void CovidBejelentes(DefaultConnectionParameters dcp)
{
if (dcp.GondviseloId.HasValue)
{
var dal = dcp.DalHandler.Gondviselo();
var gondviselo = dal.Get(dcp.GondviseloId.Value);
if (gondviselo.Telefon.Count == 0)
{
throw new BlException("Hiányzó telefonszám! A bejelentés csak telefonszám beállítása után lehetséges!", Core.Enum.BlExceptionType.ElvartErtekNemTalalhato);
}
gondviselo.IsCovidBejelento = true;
gondviselo.CovidBejelentesDatuma = DateTime.Now;
dal.Update(gondviselo);
}
}
}
}