public List <Post> GetListOfPostsByAuthorID(int authorID) { var listOfPostsByAuthor = _postRepo.GetAllPostsByAuthor(authorID); if (listOfPostsByAuthor == null) { return(new List <Post>()); } return(listOfPostsByAuthor); }