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