public PartialViewResult CreateConfirmed( AddressInput model )
 {
     if ( ModelState.IsValid )
     {
         Address Address = new Address( model.Nick, model.Line1, model.Line2, model.City, db.States.Find( model.StateID ), model.ZIP );
         Account.Addresses.Add( Address );
         db.SaveChanges();
         ViewBag.Refresh = new string[] {"Addresses"};
         return PartialView("_Empty");
         //return PartialView( "_Addresses", Account.Addresses );
     }
     else
     {
         ModelState.AddModelError( "CreateAddressFailure", "There were errors with the Address." );
         Response.StatusCode = 400;
         Response.StatusDescription = "<h4>There were errors:</h4><p>One or more of the fields could not be saved. Please review the form and ensure everything is valid.</p>";
         return PartialView( "_Addresses", Account.Addresses );
     }
 }
        public PartialViewResult EditConfirmed( AddressInput model )
        {
            if ( ModelState.IsValid )
            {
                Address Address = db.Addresses.Find( model.RID );
                Address.Nick = model.Nick;
                Address.Line1 = model.Line1;
                Address.Line2 = model.Line2;
                Address.City = model.City;
                Address.State = db.States.Find( model.StateID );
                Address.ZIP = model.ZIP;

                db.Entry( Address ).State = EntityState.Modified;
                db.SaveChanges();
                return PartialView( "_Addresses", Account.Addresses );
            }
            else
            {
                ModelState.AddModelError( "CreateAddressFailure", "There were errors with the Address." );
                Response.StatusCode = 400;
                Response.StatusDescription = "<h4>There were errors:</h4><p>One or more of the fields could not be saved. Please review the form and ensure everything is valid.</p>";
                return PartialView( "_Addresses", Account.Addresses );
            }
        }