Пример #1
0
        //Updates post, specifically UpVote, a Post is sent to proxy method, API call made to update the post in db (Adds userId into UpVote array)
        public async Task <IPosts> UpVote(Posts post)
        {
            var info = post.UpVote.ToList();

            info.Add(App.user.Id);
            post.UpVote = info.ToArray();

            return(await _postsProxy.UpdatePost(post));
        }