public async Task<ActionResult> ApplicationFinished()
 {
     bool signatureStored = false;
     using (var client = new DataServiceClient())
     {
         client.Open();
         var sig = new ElectronicSig();
         sig.date = DateTime.Now;
         sig.applicantId = Convert.ToInt32(this.Session["applicantId"]);
         //Can't use jobIds session variable here if logging in as a return user, it will always be null.
         int[] _jobIds = await client.getJobsAppliedForAsync(sig.applicantId);
         signatureStored = await client.updateElectronicSigAsync(sig, _jobIds);
         client.Close();
     }
     if (signatureStored)
     {
         this.Session["ESignature"] = "Done";
         return RedirectToAction("Index", "PhoneScreen");
     }
     else
     {
         //error in storing signature
     }
     return RedirectToAction("Index", "ESignature");
 }