public ActionResult Register(string password) { try { var ret = WcfHost_Passport.GetService <IServiceAuthenticationReception>().Register(Account, password); return(JResult(ret)); } catch (Exception e) { Console.WriteLine(e.Message); return(JResult(false, e.Message)); } }
public ActionResult UpdateTelphone(string telphone) { var ret = WcfHost_Passport.GetService <IServiceAuthenticationReception>().UpdateTelphone(Ticket, telphone); return(JResult(ret)); }
public ActionResult UpdateUserInfo(int gender) { var ret = WcfHost_Passport.GetService <IServiceAuthenticationReception>().UpdateInfo(Ticket, (Gender)gender); return(JResult(ret)); }
public ActionResult Logout() { var ret = WcfHost_Passport.GetService <IServiceAuthenticationReception>().Logout(Ticket); return(JResult(ret)); }
public JsonResult Login(string password) { var ret = WcfHost_Passport.GetService <IServiceAuthenticationReception>().Login(Account, password, DeviceType, DeviceSN); return(JResult(ret)); }