Ejemplo n.º 1
0
 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));
     }
 }
Ejemplo n.º 2
0
        public ActionResult UpdateTelphone(string telphone)
        {
            var ret = WcfHost_Passport.GetService <IServiceAuthenticationReception>().UpdateTelphone(Ticket, telphone);

            return(JResult(ret));
        }
Ejemplo n.º 3
0
        public ActionResult UpdateUserInfo(int gender)
        {
            var ret = WcfHost_Passport.GetService <IServiceAuthenticationReception>().UpdateInfo(Ticket, (Gender)gender);

            return(JResult(ret));
        }
Ejemplo n.º 4
0
        public ActionResult Logout()
        {
            var ret = WcfHost_Passport.GetService <IServiceAuthenticationReception>().Logout(Ticket);

            return(JResult(ret));
        }
Ejemplo n.º 5
0
        public JsonResult Login(string password)
        {
            var ret = WcfHost_Passport.GetService <IServiceAuthenticationReception>().Login(Account, password, DeviceType, DeviceSN);

            return(JResult(ret));
        }