示例#1
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);
        }
示例#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);
        }
示例#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);
        }