public productDao ProductToProductDao(product p) { productDao pd = new productDao(); pd.Id = p.Id; pd.Name = p.Name; pd.Price = p.Price; pd.Discount = p.Discount; return(pd); }
public product ProductDaoToProduct(productDao pd) { product p = new product(); p.Id = pd.Id; p.Name = pd.Name; p.Price = pd.Price; p.Discount = pd.Discount; return(p); }