Ejemplo n.º 1
0
 /// <summary>
 /// 删除(支持批量删除)
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public bool Del(string id)
 {
     try
     {
         var ids = id.Split(',');
         foreach (var item in ids)
         {
             var  gid       = Guid.Parse(item);
             bool isSuccess = dal.Del(gid);
             if (!isSuccess)
             {
                 throw new Exception("循环删除出现程序错误,请联系管理员!");
             }
         }
         return(true);
     }
     catch (Exception)
     {
         throw new Exception("出现程序错误,请联系管理员!");
     }
 }