public ActionResult Save(ProductCategory oProductCategory) { GlobalSession.SessionIsAlive(Session, Response); if (oProductCategory.ProductCategoryID <= 0) { _oProductCategory = _oProductCategoryService.IUD(oProductCategory, EnumDBOperation.Insert, (int)Session[GlobalSession.UserID]); } else { _oProductCategory = _oProductCategoryService.IUD(oProductCategory, EnumDBOperation.Update, (int)Session[GlobalSession.UserID]); } JavaScriptSerializer serializer = new JavaScriptSerializer(); string sjson = serializer.Serialize(_oProductCategory); return(Json(sjson, JsonRequestBehavior.AllowGet)); }