public ActionResult DeleteAddress(int id = 0)
 {
     Customer cust = new Customer();
     cust.GetFromStorage();
     Address a = new Address().Get(id);
     cust.ClearAddress(a.ID);
     if (a.cust_id == cust.ID) {
         a.Delete(id);
     }
     return RedirectToAction("Addresses");
 }
 public ActionResult DeleteAddress(int id = 0) {
     HttpContext ctx = System.Web.HttpContext.Current;
     Customer cust = new Customer();
     cust.GetFromStorage(ctx);
     if (!cust.LoggedIn(ctx)) {
         return RedirectToAction("Index", "Authenticate");
     }
     Address a = new Address().Get(id);
     cust.ClearAddress(a.ID);
     if (a.cust_id == cust.ID) {
         a.Delete(id);
     }
     return RedirectToAction("Addresses");
 }