public async Task <IActionResult> EditCondition(string customerReminderId, string cid, CustomerReminderModel.ConditionModel model, bool continueEditing)
        {
            var customerReminder = await _customerReminderService.GetCustomerReminderById(customerReminderId);

            if (customerReminder == null)
            {
                return(RedirectToAction("List"));
            }

            var condition = customerReminder.Conditions.FirstOrDefault(x => x.Id == cid);

            if (condition == null)
            {
                return(RedirectToAction("List"));
            }
            try
            {
                if (ModelState.IsValid)
                {
                    condition = await _customerReminderViewModelService.UpdateConditionModel(customerReminder, condition, model);

                    Success(_translationService.GetResource("Admin.Customers.CustomerReminderCondition.Updated"));
                    return(continueEditing ? RedirectToAction("EditCondition", new { customerReminderId = customerReminder.Id, cid = condition.Id }) : RedirectToAction("Edit", new { id = customerReminder.Id }));
                }
                return(View(model));
            }
            catch (Exception exc)
            {
                Error(exc);
                return(RedirectToAction("Edit", new { id = customerReminder.Id }));
            }
        }