public ActionResult CustomerEdit(CustomersModel customersModel) { Customers customers = customersModel.ModelToEnity(); _serviceCustomers.Update(customers); return RedirectToAction("CustomerEdit"); }
public ActionResult CustomerInsert(CustomersModel customersModel) { if (ModelState.IsValid) { _serviceCustomers.Insert(customersModel.ModelToEnity()); } return RedirectToAction("CustomerList"); }