Example #1
0
        public DataTable D_login(Class_E obj)
        {
            SqlCommand cmd = new SqlCommand("sp_Login", cn);

            cmd.CommandType = CommandType.StoredProcedure;
            cmd.Parameters.AddWithValue("@user", obj.user);
            cmd.Parameters.AddWithValue("@pass", obj.pass);
            SqlDataAdapter da     = new SqlDataAdapter(cmd);
            DataTable      dtabla = new DataTable();

            da.Fill(dtabla);
            return(dtabla);
        }
Example #2
0
 public DataTable N_login(Class_E obj)
 {
     return(objd.D_login(obj));
 }