public static HairColor ConvertColorToDal(ColorWCF wcfColor) { HairColor color = new HairColor() { Id = wcfColor.Id, Name = wcfColor.Name, Brand = wcfColor.Brand, Price = wcfColor.Price, Color = wcfColor.Color, Volume = wcfColor.Volume, QuantityBottles = wcfColor.QuantityBottles, QuantityGeneralVolume = wcfColor.QuantityGeneralVolume, Description = wcfColor.Description, QuntityCount = wcfColor.QuntityCount }; return(color); }
public static ColorWCF ConvertColorToWCF(HairColor color) { ColorWCF wcfColor = new ColorWCF() { Id = color.Id, Name = color.Name, Brand = color.Brand, Price = color.Price, Color = color.Color, Volume = color.Volume, QuantityBottles = color.QuantityBottles, QuantityGeneralVolume = color.QuantityGeneralVolume, Description = color.Description, QuntityCount = color.QuntityCount }; return(wcfColor); }