Blog.Logic.Core.CommunityLogic.GetMore C# (CSharp) Method

GetMore() public method

public GetMore ( int skip ) : List
skip int
return List
        public List<Community> GetMore(int skip)
        {
            var communities = new List<Community>();
            try
            {
                var db = _communityRepository.GetMore(5, 10).ToList();
                db.ForEach(a =>
                {
                    var result = CommunityMapper.ToDto(a);
                    result.MemberCount = GetCommunityMemberCount(result.Id);
                    communities.Add(result);
                });
            }
            catch (Exception ex)
            {
                throw new BlogException(ex.Message, ex.InnerException);
            }
            return communities;
        }