public productDto ProductDaoToProductDto(productDao p) { productDto pd = new productDto(); pd.Id = p.Id; pd.Name = p.Name; pd.Price = p.Price; pd.Discount = p.Discount; return(pd); }
public productDao ProductDtoToProductDao(productDto pd) { productDao p = new productDao(); p.Id = pd.Id; p.Name = pd.Name; p.Price = pd.Price; p.Discount = pd.Discount; return(p); }