Exemplo n.º 1
0
        /// <summary>
        /// Deletes the tax value record.
        /// </summary>
        /// <param name="taxValueId">The tax value id.</param>
        /// <returns></returns>
        public static int DeleteTaxValue(int taxValueId)
        {
            DataCommand cmd = TaxImporterDataHelper.CreateDataCommand();

            cmd.CommandText = TaxImporterDataHelper.CreateDeleteStoredProcedureName("TaxValue");
            cmd.Parameters  = new DataParameters();
            cmd.Parameters.Add(new DataParameter("TaxValueId", taxValueId));
            return(Int32.Parse(DataService.ExecuteNonExec(cmd).Scalar.ToString()));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Deletes the jurisdiction group record.
        /// </summary>
        /// <param name="jurisdictionGroupId">The jurisdiction group id.</param>
        /// <returns></returns>
        public static int DeleteJurisdictionGroup(int jurisdictionGroupId)
        {
            DataCommand cmd = TaxImporterDataHelper.CreateDataCommand();

            cmd.CommandText = TaxImporterDataHelper.CreateDeleteStoredProcedureName("JurisdictionGroup");
            cmd.Parameters  = new DataParameters();
            cmd.Parameters.Add(new DataParameter("JurisdictionGroupId", jurisdictionGroupId));
            return(Int32.Parse(DataService.ExecuteNonExec(cmd).Scalar.ToString()));
        }