public void Save(ApplicationSettings applicationSettings)
{
try
{
_errors.Clear();
_jsonSerializationService.WriteToJsonFile(applicationSettings.SettingsFile, applicationSettings, false);
_applicationSettings = applicationSettings;
}
catch (Exception ex)
{
_log.ErrorFormat(Program.GetLogErrorFormat(), ex.Message, ex.StackTrace, MethodBase.GetCurrentMethod().Name);
_errors.Add(new Error() {Description = "There was a problem saving the Application Settings File"});
}
}