示例#1
0
        //Assign Catalog
        public IActionResult AssignCatalog(int?id)
        {
            if (id == null)
            {
                return(RedirectToAction("List"));
            }
            ViewBag.VendorId = id;

            var model = _catalog.List();

            return(View(model.Data));
        }
        public IActionResult Index()
        {
            var model = _catalog.List();

            return(View(model.Data));
        }