private static Role generateRole( ModelContext context, string name ) { try { Role role = new Role() { RoleName = name }; context.RoleSet.AddOrUpdate<Role>( role ); Log.Debug( $"\ngenerateRole: {role.toString()}\nDONE" ); return role; } catch ( Exception e ) { Log.Error( "generateRole", e ); return null; } }