public ApplicationSettings GetAppSettings(ApplicationSettings settings) { var dataList = SqliteDataBase.GetData(settings.Id); var data = dataList.FirstOrDefault(); var ApplicationSettings = JsonConvert.DeserializeObject <ApplicationSettings>(data); return(ApplicationSettings); }
public void InitializeApplicationSettings(ApplicationSettings settings) { var dataList = SqliteDataBase.GetData(settings.Id); if (dataList.Count != 0) { return; } ApplicationSettings = settings; string output = JsonConvert.SerializeObject(settings); SqliteDataBase.AddData(output, settings.Id); }