示例#1
0
        public ActionResult Register(RegisterInfo data)
        {
            var isapi = new isapiSOAP.ICUTechClient();

            ViewBag.Response = isapi.RegisterNewCustomer(data.email, data.password, data.firstName, data.lastName, data.mobile, data.countryID, data.aID, data.signupIP);
            return(View());
        }
示例#2
0
        public ActionResult Login()
        {
            var isapi = new isapiSOAP.ICUTechClient();

            isapi.Login(ViewBag, ViewBag, "");
            return(View());
        }
示例#3
0
        public ActionResult Login(Login ldata)
        {
            var    isapi    = new isapiSOAP.ICUTechClient();
            string response = isapi.Login(ldata.login, ldata.password, Request.UserHostAddress);
            var    json     = JObject.Parse(response);

            if (json.ContainsKey("ResultCode"))
            {
                ViewBag.ResultCode = "-1";
                ViewBag.Msg        = json["ResultMessage"].ToString();
                return(View("Index"));
            }
            ViewBag.ResultCode = "1";
            ViewBag.Msg        = json;
            return(View("Index"));
        }