public ActionResult AddBrand(int categoryID, int parentBrandID, int brandLayer, [DataSourceRequest] DataSourceRequest request, ProductBrandModel productBrandModel)
        {
            if (productBrandModel == null)
            {
                return this.View();
            }

            try
            {
                var productBrand = DataTransfer.Transfer<Product_Brand>(
                        productBrandModel,
                        typeof(ProductBrandModel));

                productBrand.ProductCategoryID = categoryID;
                productBrand.ParentID = parentBrandID;
                productBrand.Layer = brandLayer;

                productBrandModel.ID = this.ProductBrandService.AddProductBrand(productBrand);
                if (productBrandModel.ID > 0)
                {
                    return this.Json(new[] { productBrandModel }.ToDataSourceResult(request, this.ModelState));
                }
            }
            catch (Exception exception)
            {
                throw new Exception(exception.Message, exception);
            }

            return this.View();
        }
        public ActionResult ModifyBrand([DataSourceRequest] DataSourceRequest request, ProductBrandModel productBrandModel)
        {
            if (productBrandModel == null || !this.ModelState.IsValid)
            {
                return this.Json(new[] { productBrandModel }.ToDataSourceResult(request, this.ModelState));
            }

            try
            {
                var productBrand = DataTransfer.Transfer<Product_Brand>(
                        productBrandModel,
                        typeof(ProductBrandModel));

                this.ProductBrandService.ModifyBrandCategory(productBrand);
            }
            catch (Exception exception)
            {
                throw new Exception(exception.Message, exception);
            }

            return Json(new[] { productBrandModel }.ToDataSourceResult(request, ModelState));
        }