/// <summary> /// Gets emails with conversation id /// </summary> /// <returns>Emails with the specific conversation id.</returns> public async Task <JsonResult> ConversationMessages(string convoId) { // Get access token var token = Data.GetUserSessionToken(Settings.GetUserAuthStateId(ControllerContext.HttpContext), Settings.AzureADAuthority); var messages = await GraphApiHelper.getConversationIdMessages(token.AccessToken, convoId); return(Json(messages, JsonRequestBehavior.AllowGet)); }