public static KeyValueTypeStringModel ToKeyValueModel(this RProductAttributeValue attributeValue)
 {
     if (attributeValue == null)
     {
         return(null);
     }
     return(new KeyValueTypeStringModel()
     {
         Value = attributeValue.AttributeValueId,
         Text = attributeValue.Value,
         Checked = false
     });
 }
 public static ProductAttributeValueViewModel ToModel(this RProductAttributeValue request)
 {
     if (request == null)
     {
         return(null);
     }
     return(new ProductAttributeValueViewModel()
     {
         AttributeValueId = request.AttributeValueId,
         AttributeId = request.AttributeId,
         Value = request.Value,
         UnitId = request.UnitId,
         AttributeValueStatus = request.AttributeValueStatus,
         DisplayOrder = request.DisplayOrder,
         CreatedUserId = request.CreatedUserId,
         CreatedOnUtc = request.CreatedOnUtc,
         UpdatedUserId = request.UpdatedUserId,
         UpdatedOnUtc = request.CreatedOnUtc
     });
 }