private BaseModel LoadLookupValue(ModelItem propertyInfo, Guid idValue) { var method = RepositoryReflectionUtilities.GetGenericMethod(GetType(), "LoadTypedLookupValue", propertyInfo.DataValueType); var referenceModel = (BaseModel)method?.Invoke(this, new object[] { idValue }); return(referenceModel); }
private object LoadDetailValues(BaseModel model, ModelItem propertyInfo) { string detailLinkPropertyName = GetDetailLinkPropertyName(propertyInfo); var method = RepositoryReflectionUtilities.GetGenericMethod(GetType(), "LoadTypedDetailValues", propertyInfo.DataValueType); return(method?.Invoke(this, new object[] { detailLinkPropertyName, model.Id })); }