public static void SwapStepsOrders(WelcomeTourStep currentStep, WelcomeTourStep versusStep) { int tmpSaveOrder = currentStep.Order; currentStep.Order = versusStep.Order; versusStep.Order = tmpSaveOrder; currentStep.Save(); versusStep.Save(); }
private static Dictionary <String, String> CreateStepBody(WelcomeTourStep stepToBuild) { var newStepString = new Dictionary <String, String>(); newStepString.Add("element", GetStringSelector(stepToBuild.ContentIdentifier)); newStepString.Add("content", stepToBuild.Content); newStepString.Add("title", stepToBuild.Title); newStepString.Add("placement", GetStepDescriptionBoxPlacement(stepToBuild.ContentIdentifier)); newStepString.Add("path", GetSiteUrlForStep(stepToBuild.ContentIdentifier)); return(newStepString); }