Exemplo n.º 1
0
        public async Task <IActionResult> GetAll()
        {
            var blog = await _blogservices.GetAllAsync();

            return(Ok(_mapper.Map <IEnumerable <BlogDto> >(blog)));
        }