public async Task <List <Models.Post> > GetRecentPosts() { var postsResponse = await _client.GetPosts(); if (postsResponse.items != null) { return(MapPosts(postsResponse.items)); } return(null); }
public async Task <IActionResult> Get() { var posts = await _postClient.GetPosts(); return(Ok(posts)); }
public async Task <Posts> GetAllPosts() { posts = await _postClient.GetPosts(); return(posts); }