Skip to content

Commit f23881d

Browse files
committed
AddProduct removed
1 parent db6c8e7 commit f23881d

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/AspnetRun.Core/Entities/Category.cs

+1-9
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,6 @@ public static Category Create(int categoryId, string name, string description =
2424
Description = description
2525
};
2626
return category;
27-
}
28-
29-
public void AddProduct(int productId, string productName)
30-
{
31-
if (!Products.Any(p => p.Id == productId))
32-
{
33-
Products.Add(Product.Create(productId, this.Id, productName));
34-
}
35-
}
27+
}
3628
}
3729
}

0 commit comments

Comments
 (0)