Example #1
0
 public void Remove()
 {
     if (_contacts != null)
     {
         _contacts.Delete();
     }
     CleanupContactsObject();
 }
Example #2
0
 public ActionResult Delete(int id, FormCollection collection)
 {
     try
     {
         address.Delete(id);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }