Ejemplo n.º 1
0
        public static bool GetModTopicCountByTidList(string moderatorUserName, string tidList)
        {
            var fids = Moderators.GetFidListByModerator(moderatorUserName).SplitAsInt();

            if (fids.Length <= 0 || fids[0] == 0)
            {
                return(false);
            }

            //return !(String.IsNullOrEmpty(fids)) && tidList.Split(',').Length == BBX.Data.Topics.GetModTopicCountByTidList(fids.TrimEnd(','), tidList);
            var list  = Topic.FindAllByIDs(tidList);
            var count = list.ToList().Count(e => fids.Contains(e.Fid));

            return(list.Count == count);
        }
Ejemplo n.º 2
0
 public static bool GetModPostCountByPidList(string moderatorUserName, string pidList)
 {
     string mods = Moderators.GetFidListByModerator(moderatorUserName);
     return !(String.IsNullOrEmpty(mods)) && pidList.Split(',').Length == Post.GetModPostCountByPidList(mods, pidList);
 }