public List<Post> GetPostsByUser(int userId) { var dbPosts = _postsLogic.GetPostsByUser(userId); var posts = SetPostProperties(dbPosts); return posts; }