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