public DataRow GetMasterSettings() { try { var query = string.Format(queries["SelectMasterSettings"], MasterId); var sqlCommand = sqlDataAccess.GetCommand(query); var result = sqlDataAccess.Execute(sqlCommand); return(result.Rows[0]); } catch (Exception exception) { FileLogger.Log($"TDClient Master settings could not be loaded successfully from database as : {exception.Message}"); throw; } }
public DataRow GetMasterSettings() { try { var query = string.Format(queries["SelectMasterSettings"], MasterId); var sqlCommand = sqlDataAccess.GetCommand(query); var result = sqlDataAccess.Execute(sqlCommand); return(result.Rows[0]); } catch (Exception exception) { Console.WriteLine(exception); throw; } }