title: How to make a POST with a GET as the promise
body: <p>right now I can select a Job that is already in the database and send it to a web api controller to be exported to a PDF. I am now needing to create a Job and send it to get converted at the same time. So I need some help on how the best way to do this is? Would I need to POST it, then have a function to call a Action that GETS the newest Job created in the db? Or could I somehow turn the form into a object that can be passed to the Api controller, before it makes a POST? I would think the latter would be easier but I the Action that sends the object to the api controller is a GET call? So here is how I am sending a job that is already in the db</p>
  
  <pre><code>&lt;div class="inline-fields"&gt;
   &lt;label&gt;JobId:&lt;/label&gt;
   &lt;input ng-model="currentItem.JobId" type="text"&gt;
   &lt;label&gt;JobName:&lt;/label&gt;
   &lt;input ng-model="currentItem.JobName" type="text"&gt;
  &lt;/div&gt;
  
  &lt;input ng-click="EmailPdf(currentItem)" type="button" value="Email"/&gt;
  </code></pre>
  
  <p>Controller</p>
  
  <pre><code>$scope.EmailPdf = function () {
     var id = $scope.currentItem.JobId
      $http.get('/api/Pdf/' + id).success(function () {
          $scope.PrintPreviewModal();
      });
  }
  </code></pre>
  
  <p>Api Controller</p>
  
  <pre><code> public string Get(int? id)
      {
          if (!id.HasValue)
          {
              return string.Empty;
          }
    JobDataAdapter adapter = new JobDataAdapter();
          Job job = new Job();
          job = adapter.GetJob(id);
          if (job == null)
          {
              return string.Empty;
          }
          try
          {
  </code></pre>
  
  <p>This is how I create the Job</p>
  
  <pre><code>&lt;div class="inline-fields"&gt;
      &lt;label&gt;Number:&lt;/label&gt;
      &lt;input ng-model="currentItem.JobNumber" type="text"&gt;
  &lt;/div&gt;
  &lt;div class="inline-fields"&gt;
      &lt;label&gt;Address:&lt;/label&gt;
      &lt;input ng-model="currentItem.CustomerAddress" type="text"&gt;
  &lt;/div&gt;
  &lt;div class="inline-fields"&gt;
      &lt;label&gt;Name:&lt;/label&gt;
      &lt;input ng-model="currentItem.JobName" type="text"&gt;
  
  &lt;/div&gt;
  &lt;input type="submit" value="Save" /&gt;
  &lt;input ng-click="EmailPdf()" type="button" value="Email" /&gt;
  
  //Post New Job
  $scope.submitJob = function () {
     var data = {
       JobNumber: $scope.currentItem.JobNumber,
       JobName: $scope.currentItem.JobName,
       CustomerAddress: $scope.currentItem.CustomerAddress,
    }
      $http.post('/api/apiJob/PostNewJob', data).success(function (data, status, headers) {
          console.log(data); window.top.location.reload();
      });
  
  };
  </code></pre>