public static DataSet ExecuteQuery(string Query) { ClsDataAccess Da = new ClsDataAccess(); try { Da.Connect(); return(Da.ExecuteQuery(Query)); } catch (Exception ex) { throw ex; } finally { Da.Close(); } }
public static DataSet ExecuteQuery(string ProcedureName, ClsDataAccess.Struct_Parameters[] ProcedureParameters) { ClsDataAccess Da = new ClsDataAccess(); try { Da.Connect(); return(Da.ExecuteQuery(ProcedureName, ProcedureParameters)); } catch (Exception ex) { throw ex; } finally { Da.Close(); } }