public object UpdateProductCategoryByCategoryId() { var model = new ProductCategoryInfo(); model.Id = Convert.ToInt32(HttpContext.Current.Request.Params["CategoryId"]); model.Name = HttpContext.Current.Request.Params["CategoryName"]; model.Desc = (string)HttpContext.Current.Request.Params["desc"]; model.BigPicture = HttpContext.Current.Request.Params["BigPicture"]; model.SmallPicture = HttpContext.Current.Request.Params["SmallPicture"]; model.MediumPicture = HttpContext.Current.Request.Params["mediumpicture"]; model.Content = HttpContext.Current.Request.Params["desc"]; var display = 0; if (int.TryParse(HttpContext.Current.Request.Form["DisplayOrder"], out display)) { model.DisplayOrder = display; } else { model.DisplayOrder = display; } //model.ParentId = int.Parse(HttpContext.Current.Request.Form["parentSelect"]); IProductCategoryService productCategoryService = new ProductCategoryService(); return productCategoryService.Update(model); }