Ejemplo n.º 1
0
        /// <summary>
        /// 编辑
        /// </summary>
        /// <param name="pagerParas"></param>
        /// <returns></returns>
        public JObject Edit(JObject pagerParas)
        {
            NoticeBLL noticeBll = new NoticeBLL();

            noticeBll.Add(pagerParas);
            return(new JObject());
        }
Ejemplo n.º 2
0
        public string Add(JObject pagerParas)
        {
            var id = HttpContext.Current.Request.QueryString["id"];
            //var form = HttpContext.Current.Request.Form;

            NoticeBLL noticeBll = new NoticeBLL();

            if (id != null && Int32.Parse(id) > 0)
            {
                noticeBll.Updata(pagerParas, Int32.Parse(id));
            }
            else
            {
                pagerParas.Remove("ID");
                noticeBll.Add(pagerParas);
            }
            return("1");
        }