public ActionResult Edit(Ado_Net.ServiceReference1.Car car)
 {
     try
     {
         ServiceReference1.Service1SoapClient ws = new ServiceReference1.Service1SoapClient();
         ws.Edit(car);
         return RedirectToAction("Index");
     }
     catch (Exception e)
     {
         TempData["Error"] = e.Message.ToString();
         return RedirectToAction("Edit");
     }
 }
Ejemplo n.º 2
0
 public ActionResult Edit(Ado_Net.ServiceReference1.Car car)
 {
     try
     {
         ServiceReference1.Service1SoapClient ws = new ServiceReference1.Service1SoapClient();
         ws.Edit(car);
         return(RedirectToAction("Index"));
     }
     catch (Exception e)
     {
         TempData["Error"] = e.Message.ToString();
         return(RedirectToAction("Edit"));
     }
 }