I am trying to implement a static function in my Product class to "Get" products.
The outcome I got to work is to nest a Get subclass like this:
Product.Get.ByName("Cool Product")
But I am feeling a subclass ist not the best practice for this.
I would like to accomplish it like this what i think would be right implementation:
Product.Get().ByName(x => x.Name = "Cool Product");
How could I create this kind of sub sub method(is this even the right word?)?