Exemplo n.º 1
0
 public IActionResult Put(int id, [FromBody] PutAuthorViewModel author)
 {
     _authorService.Update(author);
     return(Ok());
 }
Exemplo n.º 2
0
        public void Update(PutAuthorViewModel authorView)
        {
            Author author = Mapper.Map <PutAuthorViewModel, Author>(authorView);

            _authorRepository.Update(author);
        }