public WithoutSupplier(LinkProductsSuppliers link) { if (link != null) { Id = link.Id; ProductInfo = link.Product?.Info; Price = link.Price; } }
public WithoutProduct(LinkProductsSuppliers link) { if (link != null) { Id = link.Id; SupplierInfo = link.Supplier?.Info; Price = link.Price; } }