protected override bool ExecuteDataProcessingProc() { int success; using (var db = new WoolworthsDBDataContext()) { db.CommandTimeout = CommandTimeoutInSeconds.Value; success = db.p_ImportCategories(MasterLogId); } if (success == 0) return false; else if (success == 1) return true; else throw new ArgumentOutOfRangeException("success", "Stored Proc p_ImportCategories returned int value that that was not equal to 1 or 0"); }
protected override bool ExecuteDataProcessingProc() { int success; using (var db = new WoolworthsDBDataContext()) { db.CommandTimeout = CommandTimeoutInSeconds.Value; success = db.p_ImportCategories(MasterLogId); } if (success == 0) { return(false); } else if (success == 1) { return(true); } else { throw new ArgumentOutOfRangeException("success", "Stored Proc p_ImportCategories returned int value that that was not equal to 1 or 0"); } }