Exemplo n.º 1
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);
        }