Esempio n. 1
0
        public bool Delete(int id)
        {
            try
            {
                return dal.Delete(id);
            }

            catch (Exception e)
            {
                Logger.Logger.WriteLog(e);
                throw e;
            }
        }
Esempio n. 2
0
 /// <summary>
 /// 删除
 /// </summary>
 /// <param name="iRoleID"></param>
 /// <returns></returns>
 public MessageEntity Delete(int iRoleID)
 {
     return(_roleDAL.Delete(new P_Role {
         iRoleID = iRoleID
     }));
 }
Esempio n. 3
0
 /// <summary>
 /// 删除角色
 /// </summary>
 /// <param name="aintID">角色编号</param>
 /// <returns></returns>
 public bool DeleteRole(int aintID)
 {
     return(mobjRoleDAL.Delete(aintID));
 }
Esempio n. 4
0
        public bool Delete(int entityID)
        {
            Role role = _roleDAL.Get(a => a.RoleID == entityID);

            return(_roleDAL.Delete(role) > 0);
        }