Exemplo n.º 1
0
        public static String MoveProductAdmin(HttpContext context)
        {
            try
            {
                //get uploaded params
                var ajaxInfo        = NBrightBuyUtils.GetAjaxFields(context);
                var moveproductid   = ajaxInfo.GetXmlPropertyInt("moveproductid");
                var movetoproductid = ajaxInfo.GetXmlPropertyInt("movetoproductid");
                var searchcategory  = ajaxInfo.GetXmlPropertyInt("searchcategory");
                if (searchcategory > 0 && movetoproductid > 0 && moveproductid > 0)
                {
                    var objCtrl = new NBrightBuyController();
                    objCtrl.GetListCustom(PortalSettings.Current.PortalId, -1, "NBrightBuy_MoveProductinCateogry", 0, "", searchcategory + ";" + moveproductid + ";" + movetoproductid);
                }

                DataCache.ClearCache();

                return(ProductFunctions.ProductAdminList(context));
            }
            catch (Exception ex)
            {
                return(ex.ToString());
            }
        }