public bool SaveInterfaceAccessTokenAutoPro(string token, int systemId, string appId, string appSecret, int expiresIn, string ipAddress, int createTimestamp) { try { int errCode = -1; string errMsg = "fail"; var result = LdCmsDbEntitiesContext.SP_Add_Sys_InterfaceAccessTokenAuto(token, systemId, appId, appSecret, expiresIn, ipAddress, createTimestamp, out errCode, out errMsg); if (errCode != 0) { throw new Exception(errMsg); } return(result > 0); } catch (Exception ex) { throw new Exception(ex.Message); } }