public async Task <IActionResult> GetAllAsync() { ResponseViewModel response = await _blogAppService.GetAllAsync().ConfigureAwait(true); return(Ok(response)); }
public async Task <IActionResult> Index() { var model = await _blogAppService.GetAllAsync(); return(View(model)); }