|
@@ -16,6 +16,10 @@ public class SnapshotMapperConfigs : IRegister
|
|
|
{
|
|
|
public void Register(TypeAdapterConfig config)
|
|
|
{
|
|
|
+ config.ForType< SnapshotBulletin, SnapshotBulletinDetailOutDto>()
|
|
|
+ .Map(m => m.BulletinTypeId, n => n.SnapshotBulletinTypeId)
|
|
|
+ .Map(m => m.BulletinTypeName, n => n.SnapshotBulletinTypeName);
|
|
|
+
|
|
|
config.ForType<UpdateSnapshotBulletinInDto, SnapshotBulletin>()
|
|
|
.Map(m => m.SnapshotBulletinTypeId, n => n.BulletinTypeId)
|
|
|
.Map(m => m.SnapshotBulletinTypeName, n => n.BulletinTypeName);
|