public object EnvIsolatorGetNewIsolatorEnv(string IsolatorId, string CabinId) { string token = Request.Headers.Authorization.ToString(); int valid = new ExceptionHandler().TokenCheck(token); if (valid == 0) { return("Token has expired"); } if (valid == -1) { return("Token has invalid signature"); } return(repository.EnvIsolatorGetNewIsolatorEnv(pclsCache, IsolatorId, CabinId)); }