public Powder ConvertPowderToDTO(BllPowder bllPowder) { Powder dTOPowder = new Powder() { 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(dTOPowder); }
public BllPowder ConvertPowderToBll(Powder dTOPowder) { BllPowder bllPowder = new BllPowder() { Id = dTOPowder.Id, Name = dTOPowder.Name, Brand = dTOPowder.Brand, Price = dTOPowder.Price, Volume = dTOPowder.Volume, QuantityBottles = dTOPowder.QuantityBottles, QuantityGeneralVolume = dTOPowder.QuantityGeneralVolume, Color = dTOPowder.Color, QuntityCount = dTOPowder.QuntityCount }; return(bllPowder); }