app/controllers/AdminController.java
// The page will load and display an empty add product form
The page will load and display an empty add product form
The page will load and display an empty add product form
public Result addProduct() {
        Form<Product> addProductForm = formFactory.form(Product.class);
        return ok(addProduct.render(addProductForm, getUserFromSession(), env));
    }
public Result addProduct ( ) { Form < Product > addProductForm = formFactory . form ( Product . class ) ; return ok ( addProduct . render ( addProductForm , getUserFromSession ( ) , env ) ) ; }
The page will load and display an empty add product form
The page will load and display an empty add product form
// Create a form by wrapping the Product class // in a FormFactory form instance // Render the Add Product View, passing the form object