public ActionResult Delete(int id)
        {
            DepartProvider provider = new DepartProvider();
            int            line     = provider.DeleteDepart(id);

            if (line > 0)
            {
                this.ReturnJson.AddProperty("d", "success");
            }
            return(Content(this.ReturnJson.ToString()));
        }
        public ActionResult BatchDel(string id)
        {
            DepartProvider provider = new DepartProvider();

            string[]      list = id.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
            List <string> ls   = new List <string>();
            int           line = 0;

            foreach (string t in list)
            {
                line += provider.DeleteDepart(Convert.ToInt32(t));
            }
            if (line > 0)
            {
                this.ReturnJson.AddProperty("d", "success");
            }
            else
            {
                this.ReturnJson.AddProperty("d", "");
            }
            return(Content(this.ReturnJson.ToString()));
        }