public IActionResult Update(string id, BirdTrouble bookIn) { var book = _bookService.Get(id); if (book == null) { return(NotFound()); } _bookService.Update(id, bookIn); return(NoContent()); }
public ActionResult <BirdTrouble> Create(BirdTrouble book) { _bookService.Create(book); return(CreatedAtRoute("GetTrouble", new { id = book.Id.ToString() }, book)); }