Ejemplo n.º 1
0
 public ActionResult Edit([Bind(Include = "CustomerID,FirstName,LastName")] CustomerView customerView)
 {
     if (ModelState.IsValid)
     {
         serviceCustomers.UpdateCustomer(customerView.ToCustomer());
         return(RedirectToAction("Index"));
     }
     return(View(customerView));
 }