Ejemplo n.º 1
0
 public async Task <IActionResult> Put(int id, [FromBody] BookEditRequestModel model)
 => this.OkOrNotFound(await this.books.EditAsync(
                          id,
                          model.Title,
                          model.Description,
                          model.Price,
                          model.Copies,
                          model.Edition,
                          model.AgeRestriction,
                          model.ReleaseDate,
                          model.AuthorId));
 public async Task <IActionResult> Put(int id, [FromBody] BookEditRequestModel book)
 => this.OkOrNotFound(await bookService.EditBook(id, book.Title, book.Description, book.Price,
                                                 book.Copies, book.Edition, book.AuthorId));