Example #1
0
        public ICollection <ApplicationUser> UsersOnProjectWithRole(string role, int projectId)
        {
            var users      = new List <ApplicationUser>();
            var projUsers  = UsersOnProject(projectId);
            var roleHelper = new UserRoleHelper();

            foreach (var user in projUsers)
            {
                if (roleHelper.IsUserInRole(user.Id, role))
                {
                    users.Add(user);
                }
            }
            return(users);
        }