Пример #1
0
        public static externalDTO.ShipperWithOrderCount MapFromBLL(internalDTO.DomainLikeDTO.Shipper shipper)
        {
            var res = shipper == null ? null : new externalDTO.ShipperWithOrderCount()
            {
                Id             = shipper.Id,
                PhoneNumber    = shipper.PhoneNumber,
                ShipperAddress = shipper.ShipperAddress,
                ShipperName    = shipper.ShipperName
            };

            return(res);
        }
Пример #2
0
        public static internalDTO.Shipper MapFromBLL(externalDTO.Shipper shipper)
        {
            var res = shipper == null ? null : new internalDTO.Shipper
            {
                Id             = shipper.Id,
                ShipperName    = shipper.ShipperName,
                PhoneNumber    = shipper.PhoneNumber,
                ShipperAddress = shipper.ShipperAddress
            };

            return(res);
        }