public static DTO.PriceMarkupRule ToDto(this Display.PriceMarkupRule displayEntity) { var dto = new DTO.PriceMarkupRule( displayEntity.Id, displayEntity.DollarRangeLower, displayEntity.DollarRangeUpper, displayEntity.PercentLimitLower, displayEntity.PercentLimitUpper); return(dto); }
public static Display.PriceMarkupRule ToDisplayEntity(this DTO.PriceMarkupRule dto) { var displayEntity = new Display.PriceMarkupRule(); displayEntity.Id = dto.Id; displayEntity.DollarRangeLower = dto.DollarRangeLower; displayEntity.DollarRangeUpper = dto.DollarRangeUpper; displayEntity.PercentLimitLower = dto.PercentLimitLower; displayEntity.PercentLimitUpper = dto.PercentLimitUpper; return(displayEntity); }