コード例 #1
0
        public async Task <IActionResult> Get()
        {
            _dataFetcher.UserId = UserId;
            await _dataFetcher.GetSyncTime();

            DataMainDto dataMaster = new DataMainDto();

            dataMaster.members = await _dataFetcher.GetMembers();

            dataMaster.posts = await _dataFetcher.GetPosts();

            dataMaster.postImages = await _dataFetcher.GetPostImages();

            dataMaster.comments = await _dataFetcher.GetComments();

            dataMaster.likes = await _dataFetcher.GetLikes();

            await _dataFetcher.SaveSyncTimeAsync();

            return(Ok(dataMaster));
        }