// GET: Product public ActionResult Index() { ProductClient pc = new ProductClient(); ViewBag.listProducts = pc.FindAll(); return(View()); }
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()); }
// GET: Products public ActionResult Index() { ViewBag.List = _productClient.FindAll(); return(View()); }