public IActionResult Create(CustomerReminderModel model, bool continueEditing) { if (ModelState.IsValid) { var customerreminder = _customerReminderViewModelService.InsertCustomerReminderModel(model); SuccessNotification(_localizationService.GetResource("Admin.Customers.CustomerReminder.Added")); return(continueEditing ? RedirectToAction("Edit", new { id = customerreminder.Id }) : RedirectToAction("List")); } //If we got this far, something failed, redisplay form return(View(model)); }