public ActionResult UpdateEmail(UpdateEmailCommand updateInformationCommand)
        {
            if (!ModelState.IsValid)
                return this.View();

            var context = new AppDbContext();
            var customerToUpdate = context.Customers.Find(updateInformationCommand.CustomerId);
            customerToUpdate.Email = updateInformationCommand.Email;
            context.SaveChanges();
            return RedirectToAction("UpdateEmail");
        }
 public ActionResult UpdateEmail([DefaultValue(1)]int customerId)
 {
     var context = new AppDbContext();
     var customer = context.Customers.Find(customerId);
     return View(customer);
 }