title: How to choose the execution order of my HttpPost
body: <p>So, i have a controller with two HttpPost. </p>
  
  <p>My view is made like this </p>
  
  <ul>
  <li><p>First you fill the form.</p></li>
  <li><p>Then you press the submit (on that submit my action is launched, and this action should display something But.</p></li>
  <li><p>The controller is on await when i press because a modal pops and user need to put some information inside it. And then he will press again a button to save those information in database.</p></li>
  <li><p>There is the bug. The First controller action should redirect on a page, but it wont because of the second controller action. </p></li>
  </ul>
  
  <p>So how do i tell the controller to replay the action after i used the saving fonction of the second action ?</p>
  
  <p>Thanks for you help ! </p>
  
  <p>Here is my controller : </p>
  
  <pre><code>    [HttpPost]
      public ActionResult ModalContent(ParentModel model)
      {
          if (model != null)
          {
              UserInformationViewModel info = model.UserInformationViewModel;
              var client = new MongoClient("mongodb://localhost:27017");
              var objDatabase = client.GetDatabase("Test");
              var collection = objDatabase.GetCollection&lt;BsonDocument&gt;("UsersInformations");
              BsonDocument objDocument = new BsonDocument {
              {"Nom",info.NomUser},
              {"Prenom",info.PrenomUser},
              {"Email",info.EmailUser},
              {"Telephone",info.TelephoneUser},               
              };
  
              collection.InsertOne(objDocument);
          }
  
          return null;
      }
  
      [HttpPost]
      public ActionResult ActionNumber2(ParentModel parentViewModel)
      {
          if (parentViewModel != null)
          {
              List&lt;ObjetTransfert&gt; listeParentObjetsTransferts = new List&lt;ObjetTransfert&gt;();
              ActionNumber2 actionNumber2;
              ConvertParentModelToParentBd(parentViewModel, listeParentObjetsTransferts);
              _confidential.CCP(listeParentObjetsTransferts , out resultatC,
                  Enums.E.T);
  
              //Enregistrer d'abord le resultat en Bd
              resultatC.IdentifiantRC = new Guid().ToString();
              _resultatCS.Create(resultatC);
  
              Session["ID"] = resultatC.Id;
              return View();
          }
          return null;
      }
  </code></pre>