public object ItemReagentSetData(ReagentInfo reagentInfo)
        {
            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.ItemReagentSetData(pclsCache, reagentInfo.ReagentId, reagentInfo.ReagentSource, reagentInfo.ReagentName, reagentInfo.TerminalIP, reagentInfo.TerminalName, reagentInfo.revUserId);

            return(new ExceptionHandler().SetData(Request, ret));
        }
        public HttpResponseMessage ItemReagentSetData(ReagentInfo reagentInfo)
        {
            int ret = repository.ItemReagentSetData(pclsCache, reagentInfo.ReagentId, reagentInfo.ProductDay, reagentInfo.ReagentType, reagentInfo.ExpiryDay, reagentInfo.ReagentName, reagentInfo.ReagentTest, reagentInfo.SaveCondition, reagentInfo.Description, reagentInfo.TerminalIP, new ExceptionHandler().getTerminalName(), reagentInfo.revUserId);

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