internal ErrorModel DeleteAccount(string id)
        {
            ErrorModel errorModel = new ErrorModel();

            //Demo purposes only.  The OAuth tokens returned by the SAML assertion are valid for 1 hour and do not need to be requested before each API call.
            SamlRequestValidator validator = new SamlRequestValidator(AggCatAppSettings.Certificate,
                                                                      AggCatAppSettings.ConsumerKey,
                                                                      AggCatAppSettings.ConsumerSecret,
                                                                      AggCatAppSettings.SamlIdentityProviderId,
                                                                      AggCatAppSettings.CustomerId);
            ServiceContext ctx = new ServiceContext(validator);
            AggregationCategorizationService svc = new AggregationCategorizationService(ctx);
            try
            {
                long longId = Convert.ToInt64(id);
                svc.DeleteAccount(longId);
                errorModel.Error = null;
                errorModel.Success = true;
            }
            catch (AggregationCategorizationException ex)
            {
                errorModel.Error = ex.ToString();
                errorModel.Success = false;
            }

            return errorModel;
        }
 public ActionResult Index(ErrorModel errorModel)
 {
     ServiceOperations so = new ServiceOperations();
     return View(so.DeleteCustomer());
 }