Пример #1
0
        public ActionResult DeleteFromBasket(int equipmentId)
        {
            int     positionQuantity       = basketManager.DeleteFromBasket(equipmentId);
            int     basketPositionQuantity = basketManager.GetQuantityOfBasketPosition();
            decimal basketValue            = basketManager.GetBasketValue();

            var result = new BasketRemovingViewModel
            {
                DeletingPositionId     = equipmentId,
                RemovePositionQuantity = positionQuantity,
                BasketFullPrice        = basketValue,
                BasketPositionQuantity = basketPositionQuantity,
            };

            return(Json(result));
        }