Example #1
0
 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));
 }
Example #2
0
 public void Init()
 {
     login = this.gameObject.AddComponent <API_Login>();
     money = this.gameObject.AddComponent <API_Money>();
     http  = new HttpHelper();
 }