public string profile(User user)
 {
     try
     {
         result = orm.execObject<Result>(user, "api.user_profile");
     }
     catch (Exception exp)
     {
         errorResult(exp);
     }
     return formattedResult(result);
 }
 public string spend(User user)
 {
     try
     {
         result = orm.execObject<Result>(user, "api.user_credit_spend");
     }
     catch (Exception exp)
     {
         errorResult(exp);
     }
     return formattedResult(result);
 }
 public string freeCredit(User user)
 {
     try
     {
         result = orm.execObject<Result>(user, "api.admin_free_credit");
     }
     catch (Exception exp)
     {
         errorResult(exp);
     }
     return formattedResult(result);
 }
 //[AuthClient]
 public string forgotPwd(User user)
 {
     try
     {
         user.activationToken = Guid.NewGuid().ToString();
         result = orm.execObject<Result>(user, "api.user_pwd_forgot");
         if (result.dbMessage == null)
         {
             result.User.sendPwdForgotUser();
         }
     }
     catch (Exception exp)
     {
         errorResult(exp);
     }
     return formattedResult(result);
 }
 public string userEmail(User user)
 {
     try
     {
         result = orm.execObject<Result>(user, "api.admin_user_search");
     }
     catch (Exception exp)
     {
         errorResult(exp);
     }
     return formattedResult(result);
 }
 public string updatePwd(User user)
 {
     try
     {
         result = orm.execObject<Result>(user, "api.user_update_pwd");
     }
     catch (Exception exp)
     {
         errorResult(exp);
     }
     return formattedResult(result);
 }
 public string signUp(User user)
 {
     try
     {
         result = orm.execObject<Result>(user, "api.user_email_signup");
          if (result.dbMessage == null)
         {
             result.User.sendWelcomeEmailUser();
         }
     }
     catch (Exception exp)
     {
         errorResult(exp);
     }
     return formattedResult(result);
 }