Example #1
0
        public int countNotification()
        {
            MonitoringEntities db = new MonitoringEntities();

            return(db.events.Count(p => p.recipient_id == this.id && p.state_id == 1));
        }
Example #2
0
        public int DistributionSites()
        {
            MonitoringEntities db = new MonitoringEntities();

            return(db.audit_object.Count(p => p.site_experts.Count() > 0));
        }
Example #3
0
        public int countMessage()
        {
            MonitoringEntities db = new MonitoringEntities();

            return(db.message.Count(p => p.recipient_id == this.id && p.state_id == 1));
        }