public ActionResult DoSomething(string parameter) { //do something with parameter bool result = true; return Json(new ActionInfo() { Success =result, }); }
/** * Create a new copy of the specified transaction hierarchy. */ public ActionHierarchy (ActionHierarchy theCopy) { hierarchy = null; maxHierarchyDepth = theCopy.maxHierarchyDepth; currentDepth = theCopy.currentDepth; if (maxHierarchyDepth > 0) hierarchy = new ActionInfo[maxHierarchyDepth]; for (int i = 0; i < currentDepth; i++) { hierarchy[i] = new ActionInfo(theCopy.hierarchy[i]); } }
/** * Create a new copy of the specified transaction hierarchy. */ public ActionHierarchy (ActionHierarchy theCopy) { hierarchy = null; maxHierarchyDepth = theCopy.maxHierarchyDepth; currentDepth = theCopy.currentDepth; if (maxHierarchyDepth > 0) hierarchy = new ActionInfo[maxHierarchyDepth]; for (int i = 0; i < currentDepth; i++) { hierarchy[i] = new ActionInfo(theCopy.hierarchy[i]); } }
/** * Create a new copy of the specified transaction hierarchy. */ public ActionHierarchy (ActionHierarchy theCopy) { hierarchy = null; maxHierarchyDepth = theCopy.maxHierarchyDepth; currentDepth = theCopy.currentDepth; if (maxHierarchyDepth > 0) hierarchy = new ActionInfo[maxHierarchyDepth]; for (int i = 0; i < currentDepth; i++) { hierarchy[i] = new ActionInfo(theCopy.hierarchy[i]); } }
/** * Create a new copy of the specified transaction hierarchy. */ public ActionHierarchy (ActionHierarchy theCopy) { hierarchy = null; maxHierarchyDepth = theCopy.maxHierarchyDepth; currentDepth = theCopy.currentDepth; if (maxHierarchyDepth > 0) hierarchy = new ActionInfo[maxHierarchyDepth]; for (int i = 0; i < currentDepth; i++) { hierarchy[i] = new ActionInfo(theCopy.hierarchy[i]); } }
/** * Create a new copy of the specified transaction hierarchy. */ public ActionHierarchy (ActionHierarchy theCopy) { hierarchy = null; maxHierarchyDepth = theCopy.maxHierarchyDepth; currentDepth = theCopy.currentDepth; if (maxHierarchyDepth > 0) hierarchy = new ActionInfo[maxHierarchyDepth]; for (int i = 0; i < currentDepth; i++) { hierarchy[i] = new ActionInfo(theCopy.hierarchy[i]); } }
/** * Create a new copy of the specified transaction hierarchy. */ public ActionHierarchy (ActionHierarchy theCopy) { hierarchy = null; maxHierarchyDepth = theCopy.maxHierarchyDepth; currentDepth = theCopy.currentDepth; if (maxHierarchyDepth > 0) hierarchy = new ActionInfo[maxHierarchyDepth]; for (int i = 0; i < currentDepth; i++) { hierarchy[i] = new ActionInfo(theCopy.hierarchy[i]); } }
/** * Create a new copy of the specified transaction hierarchy. */ public ActionHierarchy (ActionHierarchy theCopy) { hierarchy = null; maxHierarchyDepth = theCopy.maxHierarchyDepth; currentDepth = theCopy.currentDepth; if (maxHierarchyDepth > 0) { hierarchy = new ActionInfo[maxHierarchyDepth]; for (int i = 0; i < maxHierarchyDepth; i++) hierarchy[i] = null; } for (int i = 0; i < currentDepth; i++) { hierarchy[i] = new ActionInfo(theCopy.hierarchy[i]); } }
/** * Create a new copy of the specified transaction hierarchy. */ public ActionHierarchy (ActionHierarchy theCopy) { hierarchy = null; maxHierarchyDepth = theCopy.maxHierarchyDepth; currentDepth = theCopy.currentDepth; if (maxHierarchyDepth > 0) { hierarchy = new ActionInfo[maxHierarchyDepth]; for (int i = 0; i < maxHierarchyDepth; i++) hierarchy[i] = null; } for (int i = 0; i < currentDepth; i++) { hierarchy[i] = new ActionInfo(theCopy.hierarchy[i]); } }
/** * Create a new copy of the specified transaction hierarchy. */ public ActionHierarchy (ActionHierarchy theCopy) { hierarchy = null; maxHierarchyDepth = theCopy.maxHierarchyDepth; currentDepth = theCopy.currentDepth; if (maxHierarchyDepth > 0) { hierarchy = new ActionInfo[maxHierarchyDepth]; for (int i = 0; i < maxHierarchyDepth; i++) hierarchy[i] = null; } for (int i = 0; i < currentDepth; i++) { hierarchy[i] = new ActionInfo(theCopy.hierarchy[i]); } }
/** * Create a new copy of the specified transaction hierarchy. */ public ActionHierarchy (ActionHierarchy theCopy) { hierarchy = null; maxHierarchyDepth = theCopy.maxHierarchyDepth; currentDepth = theCopy.currentDepth; if (maxHierarchyDepth > 0) { hierarchy = new ActionInfo[maxHierarchyDepth]; for (int i = 0; i < maxHierarchyDepth; i++) hierarchy[i] = null; } for (int i = 0; i < currentDepth; i++) { hierarchy[i] = new ActionInfo(theCopy.hierarchy[i]); } }
/** * Create a new copy of the specified transaction hierarchy. */ public ActionHierarchy (ActionHierarchy theCopy) { hierarchy = null; maxHierarchyDepth = theCopy.maxHierarchyDepth; currentDepth = theCopy.currentDepth; if (maxHierarchyDepth > 0) { hierarchy = new ActionInfo[maxHierarchyDepth]; for (int i = 0; i < maxHierarchyDepth; i++) hierarchy[i] = null; } for (int i = 0; i < currentDepth; i++) { hierarchy[i] = new ActionInfo(theCopy.hierarchy[i]); } }
/** * Create a copy of the specified transaction hierarchy. Any * hierarchy currently maintained by this object will be * lost in favour of the new hierarchy. * * We check for self-assignment. */ public synchronized void copy (ActionHierarchy c) { /* Beware of A = A */ if (this == c) return; if (hierarchy != null) hierarchy = null; currentDepth = c.currentDepth; maxHierarchyDepth = c.maxHierarchyDepth; if (maxHierarchyDepth > 0) { hierarchy = new ActionInfo[maxHierarchyDepth]; for (int i = 0; i < maxHierarchyDepth; i++) hierarchy[i] = null; } for (int i = 0; i < currentDepth; i++) hierarchy[i] = new ActionInfo(c.hierarchy[i]); }
/** * Create a copy of the specified transaction hierarchy. Any * hierarchy currently maintained by this object will be * lost in favour of the new hierarchy. * * We check for self-assignment. */ public synchronized void copy (ActionHierarchy c) { /* Beware of A = A */ if (this == c) return; if (hierarchy != null) hierarchy = null; currentDepth = c.currentDepth; maxHierarchyDepth = c.maxHierarchyDepth; if (maxHierarchyDepth > 0) { hierarchy = new ActionInfo[maxHierarchyDepth]; for (int i = 0; i < maxHierarchyDepth; i++) hierarchy[i] = null; } for (int i = 0; i < currentDepth; i++) hierarchy[i] = new ActionInfo(c.hierarchy[i]); }
/** * Create a copy of the specified transaction hierarchy. Any * hierarchy currently maintained by this object will be * lost in favour of the new hierarchy. * * We check for self-assignment. */ public synchronized void copy (ActionHierarchy c) { /* Beware of A = A */ if (this == c) return; if (hierarchy != null) hierarchy = null; currentDepth = c.currentDepth; maxHierarchyDepth = c.maxHierarchyDepth; if (maxHierarchyDepth > 0) { hierarchy = new ActionInfo[maxHierarchyDepth]; for (int i = 0; i < maxHierarchyDepth; i++) hierarchy[i] = null; } for (int i = 0; i < currentDepth; i++) hierarchy[i] = new ActionInfo(c.hierarchy[i]); }
/** * Create a copy of the specified transaction hierarchy. Any * hierarchy currently maintained by this object will be * lost in favour of the new hierarchy. * * We check for self-assignment. */ public synchronized void copy (ActionHierarchy c) { /* Beware of A = A */ if (this == c) return; if (hierarchy != null) hierarchy = null; currentDepth = c.currentDepth; maxHierarchyDepth = c.maxHierarchyDepth; if (maxHierarchyDepth > 0) { hierarchy = new ActionInfo[maxHierarchyDepth]; for (int i = 0; i < maxHierarchyDepth; i++) hierarchy[i] = null; } for (int i = 0; i < currentDepth; i++) hierarchy[i] = new ActionInfo(c.hierarchy[i]); }
/** * Create a copy of the specified transaction hierarchy. Any * hierarchy currently maintained by this object will be * lost in favour of the new hierarchy. * * We check for self-assignment. */ public synchronized void copy (ActionHierarchy c) { /* Beware of A = A */ if (this == c) return; if (hierarchy != null) hierarchy = null; currentDepth = c.currentDepth; maxHierarchyDepth = c.maxHierarchyDepth; if (maxHierarchyDepth > 0) { hierarchy = new ActionInfo[maxHierarchyDepth]; for (int i = 0; i < maxHierarchyDepth; i++) hierarchy[i] = null; } for (int i = 0; i < currentDepth; i++) hierarchy[i] = new ActionInfo(c.hierarchy[i]); }
/** * Create a copy of the specified transaction hierarchy. Any * hierarchy currently maintained by this object will be * lost in favour of the new hierarchy. * * We check for self-assignment. */ public synchronized void copy (ActionHierarchy c) { /* Beware of A = A */ if (this == c) return; if (hierarchy != null) hierarchy = null; currentDepth = c.currentDepth; maxHierarchyDepth = c.maxHierarchyDepth; if (maxHierarchyDepth > 0) { hierarchy = new ActionInfo[maxHierarchyDepth]; for (int i = 0; i < maxHierarchyDepth; i++) hierarchy[i] = null; } for (int i = 0; i < currentDepth; i++) hierarchy[i] = new ActionInfo(c.hierarchy[i]); }
/** * Create a copy of the specified transaction hierarchy. Any * hierarchy currently maintained by this object will be * lost in favour of the new hierarchy. * * We check for self-assignment. */ public synchronized void copy (ActionHierarchy c) { /* Beware of A = A */ if (this == c) return; if (hierarchy != null) hierarchy = null; currentDepth = c.currentDepth; maxHierarchyDepth = c.maxHierarchyDepth; if (maxHierarchyDepth > 0) { hierarchy = new ActionInfo[maxHierarchyDepth]; for (int i = 0; i < maxHierarchyDepth; i++) hierarchy[i] = null; } for (int i = 0; i < currentDepth; i++) hierarchy[i] = new ActionInfo(c.hierarchy[i]); }
/** * Create a copy of the specified transaction hierarchy. Any * hierarchy currently maintained by this object will be * lost in favour of the new hierarchy. * * We check for self-assignment. */ public synchronized void copy (ActionHierarchy c) { /* Beware of A = A */ if (this == c) return; if (hierarchy != null) hierarchy = null; currentDepth = c.currentDepth; maxHierarchyDepth = c.maxHierarchyDepth; if (maxHierarchyDepth > 0) { hierarchy = new ActionInfo[maxHierarchyDepth]; for (int i = 0; i < maxHierarchyDepth; i++) hierarchy[i] = null; } for (int i = 0; i < currentDepth; i++) hierarchy[i] = new ActionInfo(c.hierarchy[i]); }