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