Ejemplo n.º 1
0
        /// <summary>
        /// Gets the registered users.
        /// </summary>
        /// <param name="userId">The user identifier.</param>
        /// <returns></returns>
        /// <exception cref="ApplicationException">Repository TaxAuthority</exception>
        public IList <IUserRegistration> GetRegisteredUsers(int userId)
        {
            try
            {
                using (
                    var dbContext = (PitalyticsEntities)dbContextFactory.GetDbContext())
                {
                    var aRecord = AccountQueries.GetRegisteredUsers(dbContext, userId).ToList();

                    return(aRecord);
                }
            }
            catch (Exception e)
            {
                throw new ApplicationException("Repository GetRegisteredUsers", e);
            }
        }