Example #1
0
        private List <UserProfileObject> GetBankUsers(int?itemsPerPage, int?pageNumber, out int countG, long Id)
        {
            try
            {
                var users = new BankServices().GetBankUsers(itemsPerPage, pageNumber, out countG, Id);
                if (!users.Any())
                {
                    countG = 0;
                    return(new List <UserProfileObject>());
                }

                return(users);
            }
            catch (Exception)
            {
                countG = 0;
                return(new List <UserProfileObject>());
            }
        }