Blog.Logic.Core.UsersLogic.GetUsersByCommunity C# (CSharp) Method

GetUsersByCommunity() public method

public GetUsersByCommunity ( int communityId, int threshold = 5, int skip = 10 ) : List
communityId int
threshold int
skip int
return List
        public List<User> GetUsersByCommunity(int communityId, int threshold = 5, int skip = 10)
        {
            try
            {
                var db = _userRepository.GetUsersByCommunity(communityId, threshold, skip);
                return db.Select(UserMapper.ToDto).ToList();
            }
            catch (Exception ex)
            {
                throw new BlogException(ex.Message, ex.InnerException);
            }
        }