protected void SavePropertiesButtonClick(object sender, EventArgs e) { var values = _ui.UiProperties.ToDictionary(uiProperty => uiProperty.PropertyName, uiProperty => uiProperty.Value); TheWorkflowConfigurationService.SetConfigurationProperties(_config.Id, values); SavedLiteral.Visible = true; }
public ActionResult SaveProperties(int id, FormCollection formCollection) { var config = TheWorkflowConfigurationService.GetConfiguration(id); var ui = TheWorkflowEntityUiResolver.Resolve(config); var values = new Dictionary <string, object>(); foreach (var prop in ui.UiProperties) { values[prop.PropertyName] = ControlExtensions.ControlValue(prop.RenderControl, formCollection[prop.PropertyName]); } TheWorkflowConfigurationService.SetConfigurationProperties(id, values); return(RedirectToAction("Index", "Home")); }