コード例 #1
0
        public async Task <IActionResult> Put(int id, [FromBody] BLL.Models.Book book)
        {
            await service.UpdateAsync(id, book);

            return(Ok());
        }
コード例 #2
0
 public async Task <IActionResult> Post([FromBody] BLL.Models.Book book)
 {
     return(Ok(await service.AddAsync(book)));
 }