Пример #1
0
        public IActionResult Delete(int id)
        {
            orderContainer.Delete(id);

            ClearSessionOrderId();

            return(RedirectToAction("Index", OrderMapper.AllOrderViewModels()));
        }
Пример #2
0
        public IActionResult Index()
        {
            List <OrderViewModel> orderViews = OrderMapper.AllOrderViewModels();

            return(View(orderViews));
        }