public ActionResult productsGrid()
        {
            try
            {
                var grid = new Gridview("gridProduct", "Ürünler Tablosu");
                var data = InstanceFactory.GetInstance <IProductService>().GetWithCategories();

                grid.CellPreparing += new CustomControl.CellPreparingEventHandler(grid_CellPreparing);

                grid.AddColumns(new GridviewColumn("Düzenle", "Edit"),
                                new GridviewColumn("Sil", "Delete"),
                                new GridviewColumn("Id", "ProductID"),
                                new GridviewColumn("Ürün Adı", "ProductName"),
                                new GridviewColumn("Kategori", "CategoryID"),
                                new GridviewColumn("Kategori Adı", "Category.CategoryName"),
                                new GridviewColumn("Birim Adeti", "QuantityPerUnit"),
                                new GridviewColumn("Ürün Fiyatı", "UnitPrice"),
                                new GridviewColumn("Stok", "UnitsInStock")).DataBind(data);

                return(Content(grid.RenderControl().ToString()));
            }
            catch (Exception ex)
            {
                return(Content(ex.Message.ToString()));
            }
        }