Пример #1
0
 public ActionResult <Author> Update(int id, [FromBody] Author updatedAuthor)
 {
     try
     {
         updatedAuthor.Id = id;
         return(Ok(_as.Edit(updatedAuthor)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }