blob: 6625cef8b63e4e71a08c3ba210b617cdc666c231 (
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
28
29
30
31
|
using System;
using System.Collections.Generic;
using System.Text;
using Tango.BLL.Objects;
using Tango.DAL.Models;
namespace Tango.BLL.Mappers
{
public class AddressToAddressModelMapper : MapperBase<Address, AddressModel>
{
public override void Map(Address source, AddressModel target)
{
target.AddressString = source.AddressString;
target.City = source.City;
target.CountryCode = source.CountryCode;
target.Locality = source.Locality;
target.PostalCode = source.PostalCode;
target.State = source.State;
}
public override void Map(AddressModel source, Address target)
{
target.AddressString = source.AddressString;
target.City = source.City;
target.CountryCode = source.CountryCode;
target.Locality = source.Locality;
target.PostalCode = source.PostalCode;
target.State = source.State;
}
}
}
|