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()); }
public ActionResult Login() { var isapi = new isapiSOAP.ICUTechClient(); isapi.Login(ViewBag, ViewBag, ""); return(View()); }
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")); }