Beispiel #1
0
        public ActionResult Edit(ProdductViewModel pvm)
        {
            ProductServiceClient psc = new ProductServiceClient();

            psc.edit(pvm.product);
            return(RedirectToAction("Index", "Product"));
        }
Beispiel #2
0
        public ActionResult create(ProdductViewModel pvm)
        {
            ProductServiceClient psc = new ProductServiceClient();

            psc.Create(pvm.product);
            return(RedirectToAction("Index"));
        }
Beispiel #3
0
        public ActionResult Edit(string id)
        {
            ProductServiceClient psc = new ProductServiceClient();
            ProdductViewModel    pvm = new ProdductViewModel();

            pvm.product = psc.find(id);
            return(View("Edit", pvm));
        }