public async Task Query(TNDTargetModel targetModel, TNDEntityItem entityItem, bool returnParent, bool returnThis, bool returnChildren) { var taskSearch = this.GetBuis().Query(targetModel, entityItem.MetaEntity, true, new object[] { entityItem.GetKeyValue() }, returnParent, returnThis, returnChildren); try { await taskSearch; } catch (Exception exception) { throw; } }
public async Task Search(TNDTargetModel targetModel, TNDSearchItem searchItem) { var taskSearch = this.GetBuis().Search(targetModel, searchItem); try { await taskSearch; } catch (Exception exception) { throw; } }