protected override bool ExecuteDataProcessingProc()
        {
            int success;

            using (var db = new WoolworthsDBDataContext())
            {
                db.CommandTimeout = CommandTimeoutInSeconds.Value;
                success = db.p_ImportTargetedOfferPEL(MasterLogId);
            }

            if (success == 0) return false;
            if (success == 1) return true;
            throw new ArgumentOutOfRangeException("success", "Stored Proc p_ImportTargetedOfferPEL returned int value that that was not equal to 1 or 0");
        }
Example #2
0
        protected override bool ExecuteDataProcessingProc()
        {
            int success;

            using (var db = new WoolworthsDBDataContext())
            {
                db.CommandTimeout = CommandTimeoutInSeconds.Value;
                success           = db.p_ImportTargetedOfferPEL(MasterLogId);
            }

            if (success == 0)
            {
                return(false);
            }
            if (success == 1)
            {
                return(true);
            }
            throw new ArgumentOutOfRangeException("success", "Stored Proc p_ImportTargetedOfferPEL returned int value that that was not equal to 1 or 0");
        }