Ejemplo n.º 1
0
 public ActionResult BatchDel(string roleNum)
 {
     SysRoleProvider provider = new SysRoleProvider();
     string[] list = roleNum.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
     List<string> ls = new List<string>();
     int line = 0;
     foreach (string t in list)
     {
         line += provider.DeleteRole(t);
     }
     if (line > 0)
     {
         this.ReturnJson.AddProperty("d", "success");
     }
     else
     {
         this.ReturnJson.AddProperty("d", "");
     }
     return Content(this.ReturnJson.ToString());
 }
Ejemplo n.º 2
0
 public ActionResult Delete(string roleNum)
 {
     SysRoleProvider provider = new SysRoleProvider();
     int line = provider.DeleteRole(roleNum);
     if (line > 0)
     {
         this.ReturnJson.AddProperty("d", "success");
     }
     return Content(this.ReturnJson.ToString());
 }