/// <summary> /// Existing <see cref="ProductTypeCachedInfo"/> object is updated by <see cref="ProductTypeItem"/> Saved event. /// </summary> internal static ProductTypeCachedInfo LoadInfo(ProductTypeItem productTypeItem) { var info = new ProductTypeCachedInfo(); info.UpdatePropertiesOnSaved(productTypeItem); return(info); }
/// <summary> /// Properties on <see cref="ProductTypeCachedInfo"/> object are updated by <see cref="ProductTypeItem"/> Saved event. /// </summary> internal void UpdatePropertiesOnSaved(ProductTypeItem productTypeItem) { LoadProperty(ProductTypeIdProperty, productTypeItem.ProductTypeId); LoadProperty(NameProperty, productTypeItem.Name); }