Exemplo n.º 1
0
        public static DAL.App.DTO.UserOnAddress MapFromBLL(BLL.App.DTO.UserOnAddress userOnAddress)
        {
            var res = userOnAddress == null ? null : new DAL.App.DTO.UserOnAddress
            {
                Id        = userOnAddress.Id,
                Start     = userOnAddress.Start,
                End       = userOnAddress.End,
                AddressId = userOnAddress.AddressId,
                AppUserId = userOnAddress.AppUserId,
                Address   = AddressMapper.MapFromBLL(userOnAddress.Address),
                AppUser   = AppUserMapper.MapFromBLL(userOnAddress.AppUser)
            };

            return(res);
        }