Esempio n. 1
0
        public async Task <IActionResult> IsTopicFollowedByUserAsync(Follower follower)
        {
            try
            {
                Console.WriteLine("--------FollowerTopicId------------------" + follower.TopicId);
                Console.WriteLine("--------FollowerUserId------------------" + follower.UserId);
                var isFollowed = await topicObj.IsTopicFollowedByUserAsync(follower);

                return(Ok(isFollowed));
            }
            catch (Exception e)
            {
                Console.WriteLine("-----------Inside is topic followed--------" + e.Message);
                Console.WriteLine("-----------Inside is topic followed--------" + e.StackTrace);
            }
            return(Ok());
        }