public Core.Entities.ProductAggregate.Product Update(Core.Entities.ProductAggregate.Product product) { product.DeliveryPrice = this.DeliveryPrice; product.Description = this.Description; product.Name = this.Name; product.Price = this.Price; return(product); }
public static Product FromProduct(Core.Entities.ProductAggregate.Product product) { return(new Product() { DeliveryPrice = product.DeliveryPrice, Description = product.Description, Id = product.Id, Name = product.Name, Price = product.Price }); }