/// <summary> /// Gets the un registered users. /// </summary> /// <param name="userId">The user identifier.</param> /// <returns></returns> /// <exception cref="ApplicationException">Repository GetRegisteredUsers</exception> public IList <IUserRegistration> GetUnRegisteredUsers(int userId) { try { using ( var dbContext = (PitalyticsEntities)dbContextFactory.GetDbContext()) { var aRecord = AccountQueries.GetUnRegisteredUsers(dbContext, userId).ToList(); return(aRecord); } } catch (Exception e) { throw new ApplicationException("Repository GetRegisteredUsers", e); } }