inizio nuova gestione anagrafica eventi
This commit is contained in:
@@ -3,6 +3,7 @@ using Microsoft.Extensions.Configuration;
|
||||
using NLog;
|
||||
using SMGen.Data.Data;
|
||||
using SMGen.Data.DbModels;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SMGen.Data.Controllers
|
||||
{
|
||||
@@ -20,6 +21,26 @@ namespace SMGen.Data.Controllers
|
||||
public void Dispose()
|
||||
{ }
|
||||
|
||||
|
||||
public List<AnagEventiModel> AnagEventiGetAll()
|
||||
{
|
||||
List<AnagEventiModel> events = new List<AnagEventiModel>();
|
||||
using (SMGDataContext localDbCtx = new SMGDataContext(_configuration))
|
||||
{
|
||||
try
|
||||
{
|
||||
var currRec = localDbCtx
|
||||
.DbSetAnagEventi
|
||||
.ToList();
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
Log.Error($"Eccezione durante AnagEventiGetAll: {Environment.NewLine}{exc}");
|
||||
}
|
||||
}
|
||||
return events;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Aggiunta in bulk delle transizioni/ingressi
|
||||
/// </summary>
|
||||
@@ -117,6 +138,6 @@ namespace SMGen.Data.Controllers
|
||||
return fatto;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user