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

            _authorRepository.Update(author);
        }