I have an action as follows:
public async Task<ActionResult> Pair(string id) { try { DocuSignAPIManager docuSignAPIManager = new DocuSignAPIManager(); DocuSignEsignatureAuthContainer authContainer = await docuSignAPIManager.Pair(User.Identity.Name, id).ConfigureAwait(false); DocuSignManager.Instance.Pair(User.Identity.Name, authContainer); } catch(Exception e) { ErrorManager.Instance.LogError(e); } return new HttpStatusCodeResult(200); }
When the action is called, all the logic is executed, but instead of the HTTP Status 200 code, I get the following:
System.Threading.Tasks.Task`1[System.Web.Mvc.ActionResult]
For testing, I simply invoke the action from a web browser using the following URL:
http:
I really don't understand what the problem is - can anyone help?
source share