public override bool Init(Client client) { Hashtable data = new Hashtable(); if (client.PostParam("AddProductCategory") != null) { if (client.PostParam("name") != null) { ProductCategory productCategory = new ProductCategory(); int id = productCategoryService.CreateCategory(client.PostParam("name")).ID; client.Redirect("/product.category/#pr_" + productCategory.ID); Logger.ConsoleLog("Added new product category: " + productCategory.Name + " (ID: " + id + ")", ConsoleColor.Yellow); return(false); } } client.HttpSend(TemplateActivator.Activate(this, client, data)); return(true); }