Exemple #1
0
        public async Task <bool> Upsert(string id, BookEntity book)
        {
            book.Id = id;
            var result = await _bucket.UpsertAsync(id, book);

            return(result.Success);
        }
Exemple #2
0
        public async Task <bool> Add(BookEntity book)
        {
            var result = await _bucket.InsertAsync(book.Id, book);

            return(result.Success);
        }