Esempio n. 1
0
        public static bool UpdateUser(UserCourseRoleMappingModel userModel)
        {
            try
            {
                var user = ModelMapper.MapFromUserModel(userModel);

                return(SQLAdapter.UpdateUser(user));
            }
            catch (Exception e)
            {
                return(false);
            }
        }
Esempio n. 2
0
        public static void AddGlobalAdminUser(string upn, string firstName, string lastName, string email)
        {
            var user = new User
            {
                UserPrincipalName = upn,
                FirstName         = firstName,
                LastName          = lastName,
                Email             = email,
                IsGlobalAdmin     = true,
            };

            SQLAdapter.UpdateUser(user);
        }