コード例 #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));
        }