public object ItemIsolatorSetData(IsolatorInfo isolatorInfo)
        {
            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");
            }
            int ret = repository.ItemIsolatorSetData(pclsCache, isolatorInfo.IsolatorId, isolatorInfo.ProductDay, isolatorInfo.EquipPro, isolatorInfo.InsDescription, isolatorInfo.TerminalIP, isolatorInfo.TerminalName, isolatorInfo.revUserId);

            return(new ExceptionHandler().SetData(Request, ret));
        }
        public HttpResponseMessage ItemIsolatorSetData(IsolatorInfo isolatorInfo)
        {
            int ret = repository.ItemIsolatorSetData(pclsCache, isolatorInfo.IsolatorId, isolatorInfo.ProductDay, isolatorInfo.EquipPro, isolatorInfo.InsDescription, isolatorInfo.TerminalIP, new ExceptionHandler().getTerminalName(), isolatorInfo.revUserId);

            return(new ExceptionHandler().SetData(Request, ret));
        }