Esempio n. 1
0
        public void EditFaction(string id, Guid newFaction)
        {
            var searchedUser = _repository.GetUserById(id);

            searchedUser.FactionId = newFaction;
            _repository.EditUser(searchedUser);
        }
Esempio n. 2
0
        public void ApplyModificationsOnUsers(string name, List <UserStatus> selectedStudents)
        {
            var modify = _repository.GetPresenceByName(name);

            foreach (var student in selectedStudents)
            {
                var searchedUser = _userRepo.GetUserById(student.Id);
                searchedUser.FactionId = modify.Id;
                _userRepo.EditUser(searchedUser);
            }
        }