/// <summary> /// Returns Count of particular category or tag /// </summary> /// <param name="isTag"></param> /// <param name="tagCatName"></param> /// <returns></returns> public int GetTagCategoryCount(bool isTag, string tagCatName) { int result = new int(); if (isTag) { result = LogList.Where(s => s.Tag == tagCatName).Count(); } else { result = LogList.Where(s => s.Category == tagCatName).Count(); } return(result); }