示例#1
0
        public async Task PostsDownload()
        {
            var posts = await PostsService.DownloadPostsAsync();

            if (posts != null && posts.Count > 0)
            {
                await postRep.DeleteAllAsync();

                await postRep.InsertAllAsync(posts);
            }
        }