public DataTable GetDataByStoredProcedure(CommandSender cmdSnd) { using (SqlDataAdapter sda = new SqlDataAdapter(cmdSnd.GetCommand())) { DataTable dt = new DataTable(); sda.Fill(dt); SQLConfiguration.Close(); return(dt); } }