Exemplo n.º 1
0
        /// <summary>
        /// Gets all the accounts present in this environment.
        /// </summary>
        /// <returns></returns>
        public static IEnumerable <Account> GetAccounts()
        {
            var _accs = AccountStorage.GetAllObjects();

            foreach (var _acc in _accs)
            {
                yield return(JsonConvert.DeserializeObject <Account>(_acc));
            }
        }
        /// <summary>
        /// Gets all the accounts present in this environment.
        /// </summary>
        /// <returns></returns>
        public static IEnumerable <Account> GetAccounts()
        {
            var sqlAccounts   = AccountStorage.GetAllObjects().Select(x => JsonConvert.DeserializeObject <Account>(x));
            var localAccounts = GetLocalAccounts();

            var allAccounts = sqlAccounts.Concat(localAccounts);

            return(allAccounts);
        }