public async Task <IActionResult> Edit(Guid id, [Bind("Id,FullName")] Customer customer) { if (id != customer.Id) { return(NotFound()); } if (ModelState.IsValid) { try { await _customersService.Update(customer); } catch (DbUpdateConcurrencyException) { if (!_customersService.CustomerExists(customer.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(customer)); }