blob: 98d20580e894afc6fe00273fbc1ae0e2eddc7734 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
using System;
using System.Collections.Generic;
using System.Text;
using Tango.BLL.Objects;
using Tango.DAL.Entities;
namespace Tango.BLL.Mappers
{
public class OrganizationToOrganizationEntityMapper : MapperBase<Organization, OrganizationEntity>
{
public override void Map(Organization source, OrganizationEntity target)
{
target.ID = source.ID;
target.Name = source.Name;
new AddressToAddressModelMapper().Map(source.Address, target.Address);
new ContactToContactModelMapper().Map(source.Contact, target.Contact);
}
public override void Map(OrganizationEntity source, Organization target)
{
target.ID = source.ID;
target.Name = source.Name;
new AddressToAddressModelMapper().Map(source.Address, target.Address);
new ContactToContactModelMapper().Map(source.Contact, target.Contact);
}
}
}
|