public ActionResult Login(Login obj) { if (ModelState.IsValid) { if (API_Login.GetLogin(obj.Email, obj.Password)) { return(RedirectToAction("Index", "Home")); } else { return(View("Index", user)); } } return(View("Index", user)); }
public void Init() { login = this.gameObject.AddComponent <API_Login>(); money = this.gameObject.AddComponent <API_Money>(); http = new HttpHelper(); }