Example #1
0
        public async Task <IActionResult> AddLikeToPost(Guid postId)
        {
            var liked = await postService.AddLikeToPostAsync(postId);

            if (liked)
            {
                return(Ok());
            }

            return(BadRequest());
        }