public int countNotification() { MonitoringEntities db = new MonitoringEntities(); return(db.events.Count(p => p.recipient_id == this.id && p.state_id == 1)); }
public int DistributionSites() { MonitoringEntities db = new MonitoringEntities(); return(db.audit_object.Count(p => p.site_experts.Count() > 0)); }
public int countMessage() { MonitoringEntities db = new MonitoringEntities(); return(db.message.Count(p => p.recipient_id == this.id && p.state_id == 1)); }