public static PowderWCF ConvertPowderToWCF(BllPowder bllPowder) { PowderWCF wcfpowder = new PowderWCF() { Id = bllPowder.Id, Name = bllPowder.Name, Brand = bllPowder.Brand, Price = bllPowder.Price, Volume = bllPowder.Volume, QuantityBottles = bllPowder.QuantityBottles, QuantityGeneralVolume = bllPowder.QuantityGeneralVolume, Color = bllPowder.Color, QuntityCount = bllPowder.QuntityCount }; return(wcfpowder); }
public static BllPowder ConvertPowderToBll(PowderWCF wcfPowder) { BllPowder bllPowder = new BllPowder() { Id = wcfPowder.Id, Name = wcfPowder.Name, Brand = wcfPowder.Brand, Price = wcfPowder.Price, Volume = wcfPowder.Volume, QuantityBottles = wcfPowder.QuantityBottles, QuantityGeneralVolume = wcfPowder.QuantityGeneralVolume, Color = wcfPowder.Color, QuntityCount = wcfPowder.QuntityCount }; return(bllPowder); }