public IActionResult Edit(Customer customer) { try { if (ModelState.IsValid) { onlineShopRepository.UpdateCustomer(customer); } return(RedirectToAction(nameof(Index))); } catch { return(View()); } }
public IActionResult Edit(Customer customer) { try { if (ModelState.IsValid) { onlineShopRepository.UpdateCustomer(customer); } return(RedirectToAction(nameof(Index))); } catch { return(View()); } }