public ActionResult Configure(HelloWorldSettings settings) { var model = new ConfigurationModel(); MiniMapper.Map(settings, model); return(View(model)); }
public ActionResult Configure(HelloWorldSettings settings, ConfigurationModel model, FormCollection form) { if (!ModelState.IsValid) { return(Configure(settings)); } MiniMapper.Map(model, settings); return(RedirectToConfiguration("SmartStore.HelloWorld")); }