Update weather result (in all configuration's section)
This commit is contained in:
parent
68b45333da
commit
1fa4e188fa
@ -129,6 +129,8 @@ namespace ManagerService.Controllers
|
||||
|
||||
List<string> sectionIds = _sectionService.GetAllIdsFromConfiguration(id);
|
||||
|
||||
try
|
||||
{
|
||||
var weatherSections = _sectionService.GetAllWeatherSectionsFromConfiguration(id);
|
||||
|
||||
foreach (var weatherSection in weatherSections)
|
||||
@ -186,6 +188,10 @@ namespace ManagerService.Controllers
|
||||
}
|
||||
|
||||
}
|
||||
} catch (Exception e)
|
||||
{
|
||||
Console.WriteLine($"Une erreur s'est produite lors de la mise à jour des sections de type météo : {e.Message}");
|
||||
}
|
||||
|
||||
return new OkObjectResult(configuration.ToDTO(sectionIds));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user