/// <summary>
        /// Get All Post of a User icluding Post of Friends and excluding Hidden Post
        /// </summary>
        /// <param name="userId">Id of a User</param>
        /// <returns></returns>
        public IEnumerable <PostViewModel> GetAllPosts(string userId = null)
        {
            if (userId == null)
            {
                var user = userBLL.GetUserByUserName(User.Identity.Name);
                userId = user.Id;
            }

            var postList = postBLL.GetAllPost(userId);

            return(postList);
        }