public bool SaveAction() { dAction = new TechSharpy.Entitifier.Data.Action(); // SMRHRT.Services.Collections.ErrorCollection.ErrorInfo err = new SMRHRT.Services.Collections.ErrorCollection.ErrorInfo(); try { if (this.ActionID > 0) { //if (dAction.UpdateAction(this.Entitykey, this.ActionID, this.ActionSchema, this.IsInclude)) //{ // //err = new SMRHRT.Services.Collections.ErrorCollection.ErrorInfo("Action Saved", SMRHRT.Services.Collections.ErrorCollection.ErrorInfo.ErrorType.NO_ERROR); // //audit = new Bix360.Global.Audit(this.ClientID, this.Entitykey, "Action Updated- " + this.ActionName, this.ActionSchema, Global.Audit.ActionCategory.CUBE, Global.Audit.ActionType.UPDATE, this.UserID); // //audit.Save(); //} // else // err = new SMRHRT.Services.Collections.ErrorCollection.ErrorInfo("Unable to update action", SMRHRT.Services.Collections.ErrorCollection.ErrorInfo.ErrorType.ERR_CRITICAL); } else { this.ActionID = dAction.SaveAction(this.Entitykey, (int)Type, this.IsInclude, this.ActionName, this.ActionSchema); if (this.ActionID > 0) { //err = new SMRHRT.Services.Collections.ErrorCollection.ErrorInfo("Action Saved", SMRHRT.Services.Collections.ErrorCollection.ErrorInfo.ErrorType.NO_ERROR); //audit = new Bix360.Global.Audit(this.ClientID, this.Entitykey, "Action Created-" + this.ActionName, this.ActionSchema, Global.Audit.ActionCategory.CUBE, Global.Audit.ActionType.INSERT, this.UserID); //audit.Save(); } // else // err = new SMRHRT.Services.Collections.ErrorCollection.ErrorInfo("Unable to save action", SMRHRT.Services.Collections.ErrorCollection.ErrorInfo.ErrorType.ERR_CRITICAL); } } catch (Exception ex) { throw ex; } return(true); //return err; }