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

GetUsers() public method

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