Exemplo n.º 1
0
        public async Task <IActionResult> GetAllAsync()
        {
            ResponseViewModel response = await _blogAppService.GetAllAsync().ConfigureAwait(true);

            return(Ok(response));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> Index()
        {
            var model = await _blogAppService.GetAllAsync();

            return(View(model));
        }