protected DataSet GetData(int ID)
{
DataSet ds = new DataSet();
using (var conn = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["RabotaUA"].ToString()))
{
using (var command = new SqlCommand("spTagMaster_Structure", conn))
{
command.CommandType = CommandType.StoredProcedure;
command.Parameters.Add(new SqlParameter("@ID", ID));
SqlDataAdapter da = new SqlDataAdapter(command);
da.Fill(ds);
}
}
return ds;
}