public async Task <IActionResult> Put(int id, [FromBody] BLL.Models.Book book) { await service.UpdateAsync(id, book); return(Ok()); }
public async Task <IActionResult> Post([FromBody] BLL.Models.Book book) { return(Ok(await service.AddAsync(book))); }