Example #1
0
        public async Task <ActionResult <Interview> > WebResponse(int carrierId, string userName)
        {
            var interview = Interview.GetInterview(carrierId, userName, "Web");

            interview.RecordIdentifier.CarrierId = carrierId;

            var remote = this.HttpContext.Connection.RemoteIpAddress;

            interview.IPAddress = remote.ToString();

            interview.TypeOfCall = Interview.CallType.WebResponse;

            return(interview);
        }
Example #2
0
        public ActionResult Inbound(string carrierId, string recordingId, string qpcIdNum)
        {
            ActionResult inboundActionResult = null;
            //Session["CarrierId"] = carrierId;
            var interview = Interview.GetInterview(int.Parse(carrierId), "test", "Web");

            interview.StartDateTime       = DateTime.Now; //RR: Added to fix interview duration not stopping issue.
            interview.StartWrapUpDateTime = null;         //RR: Added to fix negative interview suration.
            if (!string.IsNullOrWhiteSpace(qpcIdNum))
            {
                inboundActionResult = _InboundSetupWithQpcIdNum(carrierId, recordingId, qpcIdNum, interview);
            }

            interview.AppHelper.logRunning("Start URL", Microsoft.AspNetCore.Http.Extensions.UriHelper.GetDisplayUrl(HttpContext.Request));

            return(inboundActionResult ?? _InboundSetup(carrierId, recordingId, interview));
        }