private static PropertyEntity Map(PropertyEntity property, AddressEntity address, Marker marker, FileEntity file, PropertyBranch branch) { return(Map <PropertyEntity>(property, address, marker, file, branch)); }
/// <summary> /// Generic mapping for property lists /// </summary> /// <param name="property"></param> /// <param name="address"></param> /// <param name="marker"></param> /// <param name="file"></param> /// <returns></returns> private static T Map <T>(T property, AddressEntity address, Marker marker, FileEntity file, PropertyBranch branch) where T : PropertyEntity { property.Address = address; property.Address.Marker = marker; property.Files = new[] { file }; property.Branch = branch; return(property); }