public IActionResult Create(TopicModel model, bool continueEditing) { if (ModelState.IsValid) { var topic = _topicViewModelService.InsertTopicModel(model); SuccessNotification(_localizationService.GetResource("Admin.ContentManagement.Topics.Added")); return(continueEditing ? RedirectToAction("Edit", new { id = topic.Id }) : RedirectToAction("List")); } //If we got this far, something failed, redisplay form //templates _topicViewModelService.PrepareTemplatesModel(model); //Stores model.PrepareStoresMappingModel(null, true, _storeService); //ACL model.PrepareACLModel(null, true, _customerService); return(View(model)); }