public object MstReagentTypeSetData(TypeAndName TypeAndName) { 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.SetMstReagentType(pclsCache, TypeAndName.Type, TypeAndName.Name); return(new ExceptionHandler().SetData(Request, ret)); }