コード例 #1
0
        public async Task <ActionResult> Put(string id, [FromBody] Post post)
        {
            var postExist = await _repository.GetById(id);

            if (postExist == null)
            {
                return(NotFound());
            }

            post.id = id;
            var result = await _repository.ActualizarPost(post);

            return(Ok(result));
        }