Exemple #1
0
        // GET: Region
        public ActionResult Index()
        {
            List <Region> regions = objRepository.GetRegions();

            ViewBag.Region = regions;
            List <Product> products = objRepository.GetProducts();

            ViewBag.Products = products;
            List <Category> categories = objRepository.GetCategories();

            ViewBag.Category = categories;
            return(View());
        }