// GET: Customer/Edit/5
        public ActionResult EditAddress()
        {
            var userId = this.User.FindFirstValue(ClaimTypes.NameIdentifier);
            var user   = _repo.Customer.GetCustomer(userId);

            Address address = _repo.Address.GetAddress(user.AddressId);

            return(View(address));
        }
        public ActionResult EditAddress(Address address)
        {
            try
            {
                var userId = this.User.FindFirstValue(ClaimTypes.NameIdentifier);
                var user   = _repo.Customer.GetCustomer(userId);

                var addressToChange = _repo.Address.FindByCondition(x => x.Id == user.AddressId).First();
                addressToChange.StreetAddress = address.StreetAddress;
                addressToChange.City          = address.City;
                addressToChange.State         = address.State;
                addressToChange.Zip           = address.Zip;

                _repo.Address.Update(addressToChange);
                _repo.Save();

                return(RedirectToAction(nameof(Index)));
            }
            catch
            {
                return(View());
            }
        }