title: MVC3 delete action-name all
body: <p>I have 3 action name delete on 3 different controllers which are on <strong>"registration,profile and questions"</strong> they all have action delete methods. How can I from my registration-delete method call out <strong>profile-delete and questions-delete</strong> . That way when a user wants to delete their account all they have to do is go on registration-delete instead of going on registration,profile and questions delete methods. I want in 1 <strong>[HttpPost, ActionName("Delete")]</strong>(registration) to call out the other 2 ActionName("Delete") methods as i prefer people to delete everything in one place is this possible? assuming that each user shares a unique ID that is the same all across. The comment in the code im just using to illustrate any help would be great</p>
  
  <p><strong>registration-delete below</strong></p>
  
  <pre><code>  [HttpPost, ActionName("Delete")]
      public ActionResult DeleteConfirmed()
      {
          var ss = User.Identity.Name;
          var getid = (from s in db.registration where ss == s.email select s.RegistrationID).FirstOrDefault();
          registration registration = db.registration.Find(getid);
  //This delete's the registration
          db.buyers.Remove(registration);
  
  // How can i call-out profile-delete actionname here and questions-delete like
  //if (question-delete != null){
  // include  ActionResult deleteconfirmed("question-delete" }
  
          db.SaveChanges();
          return RedirectToAction("logout");
      }
  </code></pre>