public static WholesalerInfoDto MapToDto(WholesalerInfo wholesalerInfo)
 {
     return(new WholesalerInfoDto
     {
         Name = wholesalerInfo.Name,
         Address = new AddressDto
         {
             Street = wholesalerInfo.Address.Street,
             City = wholesalerInfo.Address.City,
             ZipCode = wholesalerInfo.Address.ZipCode,
         }
     });
 }
示例#2
0
        public void UpdateWholesalerInfo(WholesalerInfoDto wholesalerInfoDto)
        {
            WholesalerInfo = new WholesalerInfo(wholesalerInfoDto);

            ModifiedDateTime = CreatedDateTime;
        }