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); }
public DataTable N_login(Class_E obj) { return(objd.D_login(obj)); }