//Deleting item from basket public ActionResult Delete(int itemId) { int quantityToDelete = basketManager.DeleteFromBucket(itemId); int quantity = basketManager.GetBucketQuantity(); decimal basketValue = basketManager.GetBucketValues(); var vd = new BasketDeletionViewModel { BasketQuantity = quantity, BasketValue = basketValue, QuantityToDelete = quantityToDelete, ItemIdToRemove = itemId }; return(Json(vd)); }