Пример #1
0
        public IActionResult OnPost()
        {
            Titles = _htmlHelper.GetEnumSelectList <TitleType>();

            if (ModelState.IsValid)
            {
                _customerData.UpdateCustomer(Customer);
                _customerData.CommitChanges();
                return(RedirectToPage("/Customers/Index"));
            }
            else
            {
                return(Page());
            }
        }
Пример #2
0
 public void UpdateCustomer(Customer Customer)
 {
     data.UpdateCustomer(Customer);
 }