public void Builder(string ProductName) { productDetails = CreateObject(ProductName); productDetails.GetUnit(ProductName); var obj = productDetails.CalculateDetails(); Cart.product.Add(obj); }