Exemplo n.º 1
0
        public async Task <IActionResult> UpdateBookshelfItem([FromForm] long bookshelfId,
                                                              [FromForm] string address,
                                                              [FromForm] int?chapter,
                                                              [FromForm] int?page,
                                                              [FromForm] bool?like)
        {
            var user = HttpContext.Features.Get <UserSnapshot>();
            var res  = await bookshelfService.UpdateBookshelfItemAsync(user.Id, bookshelfId, address, chapter, page, like);

            var r = new EntityResult <bool> {
                Data = res
            };

            return(Ok(r));
        }