Exemplo n.º 1
0
 /// <summary>
 /// 标记删除权限
 /// </summary>
 /// <param name="id"></param>
 /// <param name="op"></param>
 /// <returns></returns>
 public bool DeletePrivilege(long id, long op)
 {
     try
     {
         var obj    = db.UP_DeletPrivilege(id, op);
         var result = obj.FirstOrDefault();
         if (result == null)
         {
             return(false);
         }
         return(result > 0);
     }
     catch (Exception ex)
     {
         LogUtil.Exception("ExceptionLogger", ex);
         return(false);
     }
 }