private DtoSkuReply FillSkuReplay(SkuReply skureplay)
        {
            var dto = skureplay.ToDTO();

            if (skureplay.OferredSku_id.HasValue)
            {
                dto.OferredSku = ProductQueries.GetSku(skureplay.OferredSku_id.Value);
            }
            if (skureplay.OriginalSku_id.HasValue)
            {
                dto.OriginalSku = ProductQueries.GetSku(skureplay.OriginalSku_id.Value);
            }
            return(dto);
        }
        public static DtoSkuReply ToDTO(this SkuReply model)
        {
            if (model == null)
            {
                return(null);
            }

            var dto = new DtoSkuReply()
            {
                Id       = model.Id,
                OutStock = model.OutStock,
                Price    = model.Price
            };

            return(dto);
        }
        public static SkuReply ToRepository(this DtoSkuReply dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var model = new SkuReply()
            {
                Id = dto.Id,
                //OferredSku = dto.OferredSku.ToRepository(),
                //OriginalSku = dto.OriginalSku.ToRepository(),
                OutStock = dto.OutStock,
                Price    = dto.Price
            };

            return(model);
        }