Beispiel #1
0
        public async Task <IEnumerable <Post> > Get()
        {
            var items = await _api.GetPostsAsync();

            return(items);
        }
Beispiel #2
0
        public async Task <IActionResult> GetPostsAsync()
        {
            var items = await _api.GetPostsAsync();

            return(Json(items));
        }