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