public String CopyAllCatXref(HttpContext context, Boolean moverecords = false) { var strOut = NBrightBuyUtils.GetResxMessage("general_fail"); try { var ajaxInfo = NBrightBuyUtils.GetAjaxInfo(context); var catid = ajaxInfo.GetXmlPropertyInt("genxml/hidden/selectedcatid"); var newcatid = ajaxInfo.GetXmlPropertyInt("genxml/hidden/newcatid"); if (newcatid > 0 && catid > 0 && catid != newcatid) { NBrightBuyUtils.CopyAllCatXref(catid, Convert.ToInt32(newcatid), moverecords); strOut = NBrightBuyUtils.GetResxMessage(); DataCache.ClearCache(); } } catch (Exception ex) { return(ex.ToString()); } return(strOut); }