Ejemplo n.º 1
0
        public IActionResult Index(OrderIndexActionModel model)
        {
            PageMaster.SetTabName(model.TabName);
            ViewBag.TabName = model.TabName;

            var viewModel = model.Execute();

            return(View(viewModel));
        }
        public IActionResult Index(CategoryIndexActionModel model)
        {
            model.TabName = TabName.Category;
            PageMaster.SetTabName(model.TabName);

            var viewModel = model.Execute();

            ViewBag.TabName = model.TabName;
            return(View(viewModel));
        }
        public IActionResult Index(ProductIndexActionModel model)
        {
            model.TabName = TabName.Product;
            _pageMaster.SetTabName(model.TabName);

            var viewModel = model.Execute();

            ViewBag.TabName = model.TabName;
            return(View(viewModel));
        }