public ActionResult CancelSubscription() { CancelSubscriptionResponse response = _subscriptionsService.CancelSubscription(Customer.CustomerId); if (response.IsStatusActive) { return(RedirectToAction("index", "subscriptions") .AndAlert(AlertType.Danger, "Error.", "The subscription wasn't cancelled.")); } return(RedirectToAction("index").AndAlert(AlertType.Warning, "Cancelled.", "The subscription was cancelled successfully.")); }