public static ShampooWCF ConvertShampooToWCF(BllShampoo bllShampoo) { ShampooWCF wcfShampoo = new ShampooWCF() { Id = bllShampoo.Id, Name = bllShampoo.Name, Brand = bllShampoo.Brand, Price = bllShampoo.Price, Volume = bllShampoo.Volume, QuantityBottles = bllShampoo.QuantityBottles, QuantityGeneralVolume = bllShampoo.QuantityGeneralVolume, Description = bllShampoo.Description, QuntityCount = bllShampoo.QuntityCount }; return(wcfShampoo); }
public static BllShampoo ConvertShampoToBLL(ShampooWCF wcfShampoo) { BllShampoo bllShampoo = new BllShampoo() { Id = wcfShampoo.Id, Name = wcfShampoo.Name, Brand = wcfShampoo.Brand, Price = wcfShampoo.Price, Volume = wcfShampoo.Volume, QuantityBottles = wcfShampoo.QuantityBottles, QuantityGeneralVolume = wcfShampoo.QuantityGeneralVolume, Description = wcfShampoo.Description, QuntityCount = wcfShampoo.QuntityCount, }; return(bllShampoo); }