public NewsDispsetContainer NewsSelectAllForRegistered() { //check permission: registered NdiPrincipal principal = (NdiPrincipal)Thread.CurrentPrincipal; PrincipalPermission permReg = new PrincipalPermission(principal.Identity.Name, "Registered"); permReg.Demand(); TraceCallEnterEvent.Raise(); try { NewsDispsetContainer result; DataSet entitySet = m_DataContext.ndihdNewsSelectFiltered( DBGuid.Null, DBInt.Null, 1, 1, 1); result = new NewsDispsetContainer(entitySet.Tables[0]); TraceCallReturnEvent.Raise(); return result; } catch (Exception ex) { ExceptionManager.Publish(ex); TraceCallReturnEvent.Raise(false); throw; } }
public NewsDispsetContainer NewsSelectAllForVisitors() { // permission: everyone TraceCallEnterEvent.Raise(); try { NewsDispsetContainer result; DataSet entitySet = m_DataContext.ndihdNewsSelectFiltered( DBGuid.Null, 1, DBInt.Null, 1, 1); result = new NewsDispsetContainer(entitySet.Tables[0]); TraceCallReturnEvent.Raise(); return result; } catch (Exception ex) { ExceptionManager.Publish(ex); TraceCallReturnEvent.Raise(false); throw; } }
public virtual NewsDispsetContainer NewsSelectDispsetAll() { TraceCallEnterEvent.Raise(); try { NewsDispsetContainer result; DataSet entitySet = m_DataContext.ndihdNewsSelectDispsetAll(); result = new NewsDispsetContainer(entitySet.Tables[0]); TraceCallReturnEvent.Raise(); return result; } catch (Exception ex) { ExceptionManager.Publish(ex); TraceCallReturnEvent.Raise(false); throw; } }