public IList <T> NCSSelectToSql(string Sql, ref string Msg) { IList <T> ilQuery = null; try { ilQuery = _dal.QueryToSql(Sql); Flag = true; } catch (Exception ex) { Flag = false; Msg = ex.Message; } return(ilQuery); }