Exemplo n.º 1
0
        public int GetWeeklyInhouseTotalCount()
        {
            if (WeeklyInhouseSummary != null)
            {
                return(WeeklyInhouseSummary.Sum(x => x.Count));
            }

            return(0);
        }
Exemplo n.º 2
0
        public int GetWeeklyInhouseTotal(string inhouse)
        {
            if (WeeklyInhouseSummary != null)
            {
                return(WeeklyInhouseSummary.Where(x => x.InHouse == inhouse).Sum(x => x.Count));
            }

            return(0);
        }
Exemplo n.º 3
0
        public int GetWeeklyInhouseOverAllTotal(int tagId)
        {
            if (WeeklyInhouseSummary != null)
            {
                return(WeeklyInhouseSummary.Where(x => x.TagId == tagId).Sum(x => x.Count));
            }

            return(0);
        }
Exemplo n.º 4
0
        public int GetWeeklyInhouseCount(int tagId, string inhouse)
        {
            if (WeeklyInhouseSummary != null)
            {
                var tag = WeeklyInhouseSummary.FirstOrDefault(x => x.TagId == tagId && x.InHouse == inhouse);
                if (tag != null)
                {
                    return(tag.Count);
                }
            }

            return(0);
        }