コード例 #1
0
        public async Task <bool> Follow(string PostId)
        {
            ILiquidationPostItemService postItemService = DependencyService.Get <ILiquidationPostItemService>();
            var isFollow = await postItemService.Follow(PostId, UserLogged.Id);

            var currentPost = this.Data.Where(x => x.Id == PostId).SingleOrDefault();

            if (currentPost != null)
            {
                currentPost.IsFollow = isFollow;
            }
            return(isFollow);
        }