update x sync: abbozzo metodi, compila OK

This commit is contained in:
Samuele Locatelli
2024-07-18 19:14:10 +02:00
parent b38dcb5953
commit af27e297d9
23 changed files with 524 additions and 437 deletions
+35 -3
View File
@@ -1,4 +1,5 @@
using Microsoft.Extensions.Configuration;
using MP.AppAuth.Models;
using NLog;
using System;
using System.Collections.Generic;
@@ -26,14 +27,13 @@ namespace MP.AppAuth.Controllers
#region Public Methods
/// <summary>
/// Elenco Record x AnagKeyValue
/// </summary>
/// <returns></returns>
public List<Models.AnagKeyValueModel> AnagKeyValuesGetAll()
public List<AnagKeyValueModel> AnagKeyValuesGetAll()
{
List<Models.AnagKeyValueModel> dbResult = new List<Models.AnagKeyValueModel>();
List<AnagKeyValueModel> dbResult = new List<AnagKeyValueModel>();
using (MoonProContext localDbCtx = new MoonProContext(_configuration))
{
dbResult = localDbCtx
@@ -43,6 +43,22 @@ namespace MP.AppAuth.Controllers
return dbResult;
}
/// <summary>
/// Elenco Record x Config
/// </summary>
/// <returns></returns>
public List<ConfigModel> ConfigGetAll()
{
List<ConfigModel> dbResult = new List<ConfigModel>();
using (MoonProContext localDbCtx = new MoonProContext(_configuration))
{
dbResult = localDbCtx
.DbSetConfig
.ToList();
}
return dbResult;
}
public void Dispose()
{
if (dbController != null)
@@ -52,6 +68,22 @@ namespace MP.AppAuth.Controllers
}
}
/// <summary>
/// Elenco Record x Vocabolario
/// </summary>
/// <returns></returns>
public List<Vocabolario> VocabolarioGetAll()
{
List<Vocabolario> dbResult = new List<Vocabolario>();
using (MoonProContext localDbCtx = new MoonProContext(_configuration))
{
dbResult = localDbCtx
.DbSetVocabolario
.ToList();
}
return dbResult;
}
#endregion Public Methods
#region Private Fields