Create users in c #

0

How can I do so that each user who believes, can only see the content that he added?

EXAMPLE:
there are 2 teachers, each teacher has different students, how can I make a program so that each teacher can only see the students that correspond?

I have this class with which I believe the users

int resultado = 0;
SqlConnection Conn = BDComun.ObtnerCOnexion();
SqlCommand Comando = new SqlCommand(string.Format("insert Into Usuarios(nombre,contraseña)values ('{0}',pwdEncrypt('{1}'))",pUsuario,pContrseña), Conn);
resultado = Comando.ExecuteNonQuery();
Conn.Close();
return resultado; 
    
asked by Javier Valdez 13.06.2018 в 02:57
source

0 answers