public int GetWeeklyInhouseTotalCount() { if (WeeklyInhouseSummary != null) { return(WeeklyInhouseSummary.Sum(x => x.Count)); } return(0); }
public int GetWeeklyInhouseTotal(string inhouse) { if (WeeklyInhouseSummary != null) { return(WeeklyInhouseSummary.Where(x => x.InHouse == inhouse).Sum(x => x.Count)); } return(0); }
public int GetWeeklyInhouseOverAllTotal(int tagId) { if (WeeklyInhouseSummary != null) { return(WeeklyInhouseSummary.Where(x => x.TagId == tagId).Sum(x => x.Count)); } return(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); }