Exemplo n.º 1
0
        public async Task <IActionResult> AboutToProduct(int?id,
                                                         int?currentPosition)
        {
            if (id != null)
            {
                BigProductCardAndBasket result = await _dataProcessingConveyor.GetBigProductCardAndBasketAsync((int)id);

                if (result != null)
                {
                    _session.SetString("CurrentPositionProduct", currentPosition.ToString());
                    return(View(result));
                }
            }
            return(NotFound());
        }