public Foundation ConvertFoundationToDTO(BllFoundation bllFoundation) { Foundation dTOFoundation = new Foundation() { 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(dTOFoundation); }
public BllFoundation ConvertFoundationToBll(Foundation dTOFoundation) { BllFoundation bllFoundation = new BllFoundation() { Id = dTOFoundation.Id, Name = dTOFoundation.Name, Brand = dTOFoundation.Brand, Price = dTOFoundation.Price, Color = dTOFoundation.Color, Volume = dTOFoundation.Volume, QuantityBottles = dTOFoundation.QuantityBottles, QuantityGeneralVolume = dTOFoundation.QuantityGeneralVolume, Description = dTOFoundation.Description, QuntityCount = dTOFoundation.QuntityCount }; return(bllFoundation); }