Exemplo n.º 1
0
        public HttpResponseMessage ConfirmationLoanApply()
        {
            object result              = string.Empty;
            int    netLoanApplyId      = DNTRequest.GetInt("netLoanApplyId", -1);
            string borrowNo            = DNTRequest.GetString("borrowNo");
            string tradePassword       = DNTRequest.GetString("tradePassword");
            string tradePasswordSecond = DNTRequest.GetString("tradePasswordSecond");
            string token = DNTRequest.GetString("token");

            LoanInterface.cookieValue = token;
            result = LoanInterface.ConfirmationLoanApply(borrowNo, tradePassword, tradePasswordSecond, netLoanApplyId);

            HttpResponseMessage res = new HttpResponseMessage {
                Content = new StringContent(result.ToString(), Encoding.GetEncoding("UTF-8"), "text/plain")
            };

            return(res);
        }