Fix MacchineModel in proj non ancora ricompilati

This commit is contained in:
Samuele Locatelli
2025-06-30 14:33:44 +02:00
parent 237a770067
commit f73c62c3df
27 changed files with 48 additions and 48 deletions
+4 -4
View File
@@ -858,9 +858,9 @@ namespace MP.IOC.Data
/// </summary>
/// <param name="codGruppo"></param>
/// <returns></returns>
public async Task<List<Macchine>> MacchineGetFilt(string codGruppo)
public async Task<List<MacchineModel>> MacchineGetFilt(string codGruppo)
{
List<Macchine>? result = new List<Macchine>();
List<MacchineModel>? result = new List<MacchineModel>();
Stopwatch stopWatch = new Stopwatch();
stopWatch.Start();
string readType = "DB";
@@ -870,7 +870,7 @@ namespace MP.IOC.Data
RedisValue rawData = redisDb.StringGet(currKey);
if (rawData.HasValue)
{
result = JsonConvert.DeserializeObject<List<Macchine>>($"{rawData}");
result = JsonConvert.DeserializeObject<List<MacchineModel>>($"{rawData}");
readType = "REDIS";
}
else
@@ -882,7 +882,7 @@ namespace MP.IOC.Data
}
if (result == null)
{
result = new List<Macchine>();
result = new List<MacchineModel>();
}
stopWatch.Stop();
TimeSpan ts = stopWatch.Elapsed;