Esempio n. 1
0
        // GET: Product
        public ActionResult Index()
        {
            ProductClient pc = new ProductClient();

            ViewBag.listProducts = pc.FindAll();
            return(View());
        }
Esempio n. 2
0
        public ActionResult Create()
        {
            var vm          = new OrderViewModel();
            var listProduct = _productClient.FindAll();

            vm.ProductSelectList = new SelectList(listProduct, "Id", "Name");
            vm.Employee          = _employeeClient.GetEmployee(Convert.ToInt32(Session["UserId"]));
            return(View(vm));
        }
        public ActionResult Index()
        {
            CategorieClient _categorieClient = new CategorieClient();

            ViewBag.listcategorie = _categorieClient.FindAll();
            ProductClient _productClient = new ProductClient();

            ViewBag.listProduct = _productClient.FindAll();
            return(View());
        }
Esempio n. 4
0
        // GET: Products
        public ActionResult Index()
        {
            ViewBag.List = _productClient.FindAll();

            return(View());
        }