public IActionResult OnPost() { Titles = _htmlHelper.GetEnumSelectList <TitleType>(); if (ModelState.IsValid) { _customerData.UpdateCustomer(Customer); _customerData.CommitChanges(); return(RedirectToPage("/Customers/Index")); } else { return(Page()); } }
public void UpdateCustomer(Customer Customer) { data.UpdateCustomer(Customer); }