public static void AddAfterSelf(this JProperty property, CatalogType catalogType, ICatalogClient catalogClient) { var resultQuery = catalogClient.GetValue(catalogType, property.Value.ToString()); property.AddAfterSelf(new JProperty($"{property.Name}Descripcion", resultQuery.DESCRIPCION)); }
public static void AddAfterSelf(this JProperty property, ICatalogClient catalogClient, CatalogType catalogType, string propertyName) { var resultQuery = catalogClient.GetValue(catalogType, property.Value.ToString()); property.AddAfterSelf(new JProperty(propertyName, resultQuery.DESCRIPCION)); }