public static FoundationWCF ConvertFoundationTowcf(BllFoundation bllFoundation) { FoundationWCF wcfFoundation = new FoundationWCF() { Id = bllFoundation.Id, Name = bllFoundation.Name, Brand = bllFoundation.Brand, Price = bllFoundation.Price, Color = bllFoundation.Color, Volume = bllFoundation.Volume, QuantityBottles = bllFoundation.QuantityBottles, QuantityGeneralVolume = bllFoundation.QuantityGeneralVolume, Description = bllFoundation.Description, QuntityCount = bllFoundation.QuntityCount }; return(wcfFoundation); }
public static BllFoundation ConvertFoundationToBll(FoundationWCF wcfFoundation) { BllFoundation bllFoundation = new BllFoundation() { Id = wcfFoundation.Id, Name = wcfFoundation.Name, Brand = wcfFoundation.Brand, Price = wcfFoundation.Price, Color = wcfFoundation.Color, Volume = wcfFoundation.Volume, QuantityBottles = wcfFoundation.QuantityBottles, QuantityGeneralVolume = wcfFoundation.QuantityGeneralVolume, Description = wcfFoundation.Description, QuntityCount = wcfFoundation.QuntityCount }; return(bllFoundation); }