public IActionResult Run(string Id) { var reminder = _customerReminderService.GetCustomerReminderById(Id); if (reminder == null) { return(RedirectToAction("List")); } _customerReminderViewModelService.RunReminder(reminder); SuccessNotification(_localizationService.GetResource("Admin.Customers.CustomerReminder.Run")); return(RedirectToAction("Edit", new { id = Id })); }
public async Task <IActionResult> Run(string Id) { var reminder = await _customerReminderService.GetCustomerReminderById(Id); if (reminder == null) { return(RedirectToAction("List")); } await _customerReminderViewModelService.RunReminder(reminder); Success(_translationService.GetResource("Admin.Customers.CustomerReminder.Run")); return(RedirectToAction("Edit", new { id = Id })); }