public int Delete(string Ids)
        {
            var arr    = Ids.Split(',');
            var result = 0;

            for (int i = 0; i < arr.Length; i++)
            {
                result += bll.Delete(Convert.ToInt32(arr[i]));
            }
            return(result);
        }
Example #2
0
 public int DeleteRoles(string id)
 {
     if (id == "1")
     {
         return(-1);
     }
     try
     {
         return(roleBll.Delete(id));
     }
     catch
     {
         return(-2);
     }
 }
        public bool Delete(int id)
        {
            RolesBLL bll = new RolesBLL();

            return(bll.Delete(id));
        }