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

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

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

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

            return(JResult(ret));
        }