public GeneratorActionResult ExecuteAction(GeneratorArguments arguments, Core.InputFields.ActionInputValues values, Dictionary <string, string> parameters) { url = parameters["url"]; token = parameters["token"]; try { values.Add("CloneUrl", GetCloneUrl(values.GetString("projectId"))); } catch (Exception ex) { return(new GeneratorActionResult(false, ex.Message)); } return(new GeneratorActionResult(true, "")); }
public GeneratorActionResult ExecuteAction(GeneratorArguments arguments, Core.InputFields.ActionInputValues values, Dictionary <string, string> parameters) { url = parameters["url"]; token = parameters["token"]; moveToken = parameters["moveToken"]; try { var projectId = CreateProject(arguments.Name, "", "Websites"); values.Add("projectId", projectId); } catch (Exception ex) { return(new GeneratorActionResult(false, ex.Message)); } return(new GeneratorActionResult(true, "")); }