public async Task <BookCacheModel> DecreaseAsync(BookCacheModel book) { book.Amount = await cache.SortedSetDecrementAsync(book.Key, book.Price.ToString("N8"), (double)book.Amount) .ContinueWith(x => (decimal)x.Result); return(book); }
public BookChangedEventArgs(BookCacheModel book, bool isIecrease = true) { this.book = book; this.isIncrease = isIecrease; }