Beispiel #1
0
        public string GetExternalAccountsHistoriesGlobal(int jsonIdCustomer)
        {
            string error = "";
            List <ExternalAccountHistory> externalAccountHistories = ExternalAccountHelper.GetExternalAccountsHistoriesGlobal(jsonIdCustomer, out error);
            KoloWsObject <List <ExternalAccountHistory> > koloWs   = new KoloWsObject <List <ExternalAccountHistory> >(error, externalAccountHistories);
            var result = SerializationHelper.SerializeToJson(koloWs);

            return(result);
        }
Beispiel #2
0
        public string GetExternalAccountsHistoriesSpecific(string jsonExternalAccount)
        {
            string          error           = "";
            ExternalAccount externalAccount = SerializationHelper.DeserializeFromJsonString <ExternalAccount>(jsonExternalAccount);
            List <ExternalAccountHistory> externalAccountHistories = ExternalAccountHelper.GetExternalAccountsHistoriesSpecific(externalAccount, out error);
            KoloWsObject <List <ExternalAccountHistory> > koloWs   = new KoloWsObject <List <ExternalAccountHistory> >(error, externalAccountHistories);
            var result = SerializationHelper.SerializeToJson(koloWs);

            return(result);
        }
Beispiel #3
0
        public string UpdateExternalAccount(string jsonExternalAccount)
        {
            string          error                 = "";
            ExternalAccount externalAccount       = SerializationHelper.DeserializeFromJsonString <ExternalAccount>(jsonExternalAccount);
            var             tmp                   = ExternalAccountHelper.UpdateExternalAccount(externalAccount, out error);
            KoloWsObject <ExternalAccount> koloWs = new KoloWsObject <ExternalAccount>(error, tmp);
            var result = SerializationHelper.SerializeToJson(koloWs);

            return(result);
        }
Beispiel #4
0
        public string RemoveExternalAccount(string jsonExternalAccount)
        {
            string          error                 = "";
            ExternalAccount externalAccount       = SerializationHelper.DeserializeFromJsonString <ExternalAccount>(jsonExternalAccount);
            var             isRemoved             = ExternalAccountHelper.RemoveExternalAccount(externalAccount, out error);
            KoloWsObject <ExternalAccount> koloWs = new KoloWsObject <ExternalAccount>(isRemoved, error, externalAccount);
            var result = SerializationHelper.SerializeToJson(koloWs);

            return(result);
        }
Beispiel #5
0
 public ExternalLoginModel(
     ApplicationSignInManager signInManager,
     ApplicationUserManager userManager,
     ILogger <ExternalLoginModel> logger,
     AccountMailHelper <ApplicationUser> accountMailHelper,
     ExternalAccountHelper <ApplicationUser> externalAccountHelper)
 {
     _signInManager         = signInManager;
     _userManager           = userManager;
     _logger                = logger;
     _accountMailHelper     = accountMailHelper;
     _externalAccountHelper = externalAccountHelper;
 }