public DataTable SelectAll(string q) { da = new SqlDataAdapter(q, MobileDetail.Connect()); DataTable dt = new DataTable(); da.Fill(dt); return(dt); }
public bool DMLOperation(string q) { cmd = new SqlCommand(q, MobileDetail.Connect()); int x = cmd.ExecuteNonQuery(); if (x == 1) { return(true); } else { return(false); } }