public bool SaveAccessTokenPro(string token, string refreshToken, int systemId, string companyId, string memberId, string uuid, int expiresIn, int refreshTokenExpiresIn, string ipAddress, int createTimestamp) { try { int errCode = -1; string errMsg = "fail"; var result = CTMSContext.SP_Add_Member_AccessToken(token, refreshToken, systemId, companyId, memberId, uuid, expiresIn, refreshTokenExpiresIn, ipAddress, createTimestamp, out errCode, out errMsg); if (errCode != 0) { throw new Exception(errMsg); } return(errCode == 0 ? true : false); } catch (Exception ex) { throw new Exception(ex.Message); } }