Fix gestione risposta esecuzioni fatte
This commit is contained in:
@@ -39,20 +39,6 @@ namespace WebDoorCreator.API.Controllers
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Invio elenco risultati elaborazioni (modalità boolean di esecuzione corretta)
|
||||
/// </summary>
|
||||
/// <param name="calcResults">Risultati elaborazioni in formato CalcResultDTO</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("SaveProcResult")]
|
||||
public async Task<string> SaveProcResult(List<CalcResultDTO> calcResults)
|
||||
{
|
||||
string answ = "NA";
|
||||
bool fatto = await QDataServ.SaveProcessingResult(calcResults);
|
||||
answ = fatto ? "OK" : "NO";
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reset delle code di chiamata x ripetere simulazione
|
||||
/// </summary>
|
||||
@@ -71,6 +57,20 @@ namespace WebDoorCreator.API.Controllers
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Invio elenco risultati elaborazioni (modalità boolean di esecuzione corretta)
|
||||
/// </summary>
|
||||
/// <param name="calcResults">Risultati elaborazioni in formato CalcResultDTO</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("SaveProcResult")]
|
||||
public async Task<string> SaveProcResult(List<CalcResultDTO> calcResults)
|
||||
{
|
||||
string answ = "NA";
|
||||
bool fatto = await QDataServ.SaveProcessingResult(calcResults);
|
||||
answ = fatto ? "OK" : "NO";
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Elenco richieste raggruppate x stato
|
||||
/// </summary>
|
||||
@@ -85,7 +85,6 @@ namespace WebDoorCreator.API.Controllers
|
||||
var actProc = await QDataServ.RequestProcessing();
|
||||
answ.Add("processing", actProc);
|
||||
|
||||
|
||||
var actDone = await QDataServ.RequestDone();
|
||||
answ.Add("done", actProc);
|
||||
return answ;
|
||||
|
||||
Reference in New Issue
Block a user