public JsonUploadResult(bool success, Guid id, object targetElementId, JsonRefreshMode refreshMode, string absoluteFilePath, string relativeFilePath) : base(success, targetElementId, refreshMode) { Id = id; AbsoluteFilePath = absoluteFilePath; RelativeFilePath = relativeFilePath; }
protected JsonTreeResult(bool success, Guid?parentId, object targetElementId, JsonRefreshMode refreshMode, string message, string afterAction) : base(success, targetElementId, refreshMode, message, afterAction) { ParentId = parentId; }
public JsonDialogResult(bool success, object targetId, string action, JsonRefreshMode refreshMode) : this(success, refreshMode) { TargetId = targetId; Action = action; }
public JsonDialogResult(bool success, JsonRefreshMode refreshMode) { Success = success; RefreshMode = refreshMode; }
public JsonResult CreateFail(object targetElementId, JsonRefreshMode refreshMode) { return(new JsonResult(false, targetElementId, refreshMode)); }
public JsonResult CreateSuccess(object targetElementId, JsonRefreshMode refreshMode) { return(new JsonResult(true, targetElementId, refreshMode)); }
protected JsonResult(bool success, object targetElementId, JsonRefreshMode refreshMode) { Success = success; TargetElementId = targetElementId; RefreshMode = refreshMode; }
private JsonWizardResult(bool success, Guid id, object targetElementId, JsonRefreshMode refreshMode, string message, string afterAction, int nextStepIndex) : base(success, targetElementId, refreshMode, message, afterAction) { Id = id; NextStepIndex = nextStepIndex; }
public static JsonUploadResult CreateSuccess(Guid id, object targetElementId, JsonRefreshMode refreshMode, string absoluteFilePath, string relativeFilePath) { return(new JsonUploadResult(true, id, targetElementId, refreshMode, absoluteFilePath, relativeFilePath)); }
protected override ActionResult RedirectToActionAfterSuccessCreate(Guid id, string actionName, string controllerName, object routeValues, string targetHtmlId, JsonRefreshMode refreshMode) { Guid?parentId = GetService().GetParentId(id); if (parentId.HasValue) { return(base.RedirectToActionAfterSuccessCreate(id, actionName, controllerName, routeValues, parentId.Value.ToString(), JsonRefreshMode.TREE)); } return(base.RedirectToActionAfterSuccessCreate(id, actionName, controllerName, routeValues, targetHtmlId, JsonRefreshMode.FULL)); }
protected override ActionResult RedirectToActionAfterSuccessDelete(Guid id, string actionName, string controllerName, string targetId, object routeValues, JsonRefreshMode refreshMode) { if (!Guid.Empty.Equals(id)) { return(RedirectToActionAfterSuccessDelete(id, actionName, controllerName, targetId, routeValues, JsonRefreshMode.TREE)); } return(RedirectToActionAfterSuccessDelete(id, actionName, controllerName, targetId, routeValues, JsonRefreshMode.FULL)); }
public JsonFileSelectDialogResult(bool success, string thumbnailPath, string path, JsonRefreshMode refreshMode) : base(success, refreshMode) { ThumbnailPath = thumbnailPath; Path = path; }
protected virtual ActionResult RedirectToActionAfterSuccessCreate(Guid id, string actionName, string controllerName, object routeValues, string targetHtmlId, JsonRefreshMode jsonRefreshMode) { return(RedirectToAction(actionName, controllerName, routeValues)); }
protected virtual ActionResult RedirectToActionAfterSuccessDelete(Guid id, string actionName, string controllerName, string targetId, object routeValues, JsonRefreshMode refreshMode) { return(Json(new JsonDialogResult(true, targetId, Url.Action(actionName, controllerName, routeValues), refreshMode))); }
protected override ActionResult RedirectToActionAfterSuccessCreate(Guid id, string actionName, string controllerName, object routeValues, string targetHtmlId, JsonRefreshMode refreshMode) { return(Json(new JsonDialogResult(true, targetHtmlId, Url.Action(actionName, controllerName, routeValues), JsonRefreshMode.FULL))); }
protected JsonDialogResult(bool success, object targetElementId, JsonRefreshMode refreshMode, string message, string afterAction) : base(success, targetElementId, refreshMode) { Message = message; AfterAction = afterAction; }