Blog.Logic.ObjectMapper.AddressMapper.ToDto C# (CSharp) 메소드

ToDto() 공개 정적인 메소드

public static ToDto ( Blog.DataAccess.Database.Entities.Objects address ) : Address
address Blog.DataAccess.Database.Entities.Objects
리턴 Address
        public static Address ToDto(Db.Address address)
        {
            return address == null ? null :
                new Address
                {
                    AddressId = address.AddressId,
                    City = address.City,
                    Country = address.Country,
                    State = address.State,
                    StreetAddress = address.StreetAddress,
                    Zip = address.Zip,
                    UserId = address.UserId
                };
        }
AddressMapper