public static StoreSettingObject GetConnectionStringParameters() { try { return(DbContextSwitcher.GetConnectionStringParameters()); } catch (Exception ex) { ErrorLogger.LogError(ex.StackTrace, ex.Source, ex.Message); return(new StoreSettingObject()); } }
public static string SwitchSqlDatabase(StoreSettingObject storeSetings) { try { return(DbContextSwitcher.SwitchSqlDatabase(storeSetings)); } catch (Exception ex) { ErrorLogger.LogError(ex.StackTrace, ex.Source, ex.Message); return(string.Empty); } }