Exemplo n.º 1
0
        public void TrySynchronize()
        {
            var localItems = _localDatabase.GetAllExpenditures();

            LoadLocalItemsToCache(localItems);

            var itemsToUpload = ResolveUnsynchronizedLocalItems(localItems);

            LoadExpendituresFromServer();

            UploadToServer(itemsToUpload);
        }