//
        // GET: /Phone/

        public ActionResult IncomingCall(string CallSid, string FromCity, string FromState, string FromZip, string FromCountry)
        {
            LocationalCall call = (LocationalCall)GetCall(CallSid);

            StateManager.AddNewCall(call);
            StateManager.AddToLog(CallSid, "Incoming call...");
            call.City    = FromCity;
            call.Country = FromCountry;
            call.ZipCode = FromZip;
            call.State   = FromState;

            TwilioResponse response = new TwilioResponse();

            response.BeginGather(new
            {
                action    = Url.Action("ServiceRequest"),
                timeout   = 120,
                method    = "POST",
                numDigits = 1
            });
            response.Say("Welcome to the Bank of Griff.");
            response.Pause();
            response.Say("Press 1 to manage your account.");
            response.Say("Press 2 to take out a loan.");
            response.Say("Press 3 to talk to a representative.");
            response.Pause();
            response.EndGather();

            return(SendTwilioResult(response));
        }
        public ActionResult CallComplete(string CallSid)
        {
            LocationalCall call = (LocationalCall)GetCall(CallSid);

            StateManager.CompletedCall(call);
            StateManager.AddToLog(CallSid, "Call is completed.");

            TwilioResponse response = new TwilioResponse();

            response.Say("Goodbye baby cakes");
            response.Hangup();

            return(SendTwilioResult(response));
        }