public ActionResult PaymentMethodInsert(PaymentMethodsModel model) { if (ModelState.IsValid) { _servicePaymentMethods.Insert(model.ModelToEnity()); } return RedirectToAction("PaymentMethodList"); }
public ActionResult PaymentMethodEdit(PaymentMethodsModel model) { if (ModelState.IsValid) { _servicePaymentMethods.Update(model.ModelToEnity(true)); } return RedirectToAction("PaymentMethodList"); }