public object Add(object item) { BasketItem oldBasketItem; oldBasketItem = (BasketItem)item; using (BookMarketDbContext db = new BookMarketDbContext()) { db.AddBasketItem(oldBasketItem.Amount, oldBasketItem.ItemCount, oldBasketItem.BookVariableInfoId, oldBasketItem.BasketId, oldBasketItem.PaymentId); } return GetAll().basketItems.Last(); }