/// <summary> /// Get Tax from Cache /// </summary> /// <param name="ctx">context</param> /// <param name="C_Tax_ID">id</param> /// <returns>MTax</returns> public static MTax Get(Ctx ctx, int C_Tax_ID) { int key = C_Tax_ID; MTax retValue = (MTax)_cache[key]; if (retValue != null) { return(retValue); } retValue = new MTax(ctx, C_Tax_ID, null); if (retValue.Get_ID() != 0) { _cache.Add(key, retValue); } return(retValue); }