public async Task <IActionResult> Put(int id, PostDTO postDto)
        {
            var post = _mapper.Map <Post>(postDto);

            post.Id = id;

            var result = await _postService.Actualizar(post);

            var response = new ApiResponse <bool>(result);

            return(Ok(response));
        }
        public async Task <IActionResult> ActualizarUsuario(int id, UsuarioDTO usuario)
        {
            var user = _mapper.Map <Usuario>(usuario);

            user.Id = id;

            var result = await _service.Actualizar(user);

            var response = new ApiResponse <bool>(result);

            return(Ok(response));
        }