public static bool UpdateUser(UserCourseRoleMappingModel userModel) { try { var user = ModelMapper.MapFromUserModel(userModel); return(SQLAdapter.UpdateUser(user)); } catch (Exception e) { return(false); } }
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); }