Пример #1
0
        public void DeleteMediaGroup(int MediaID)
        {
            DataLayer dal = new DataLayer();
            dal.ConnectionString = ConnectionString;
            dal.Connect();

            SqlCommand cmd = new SqlCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "DeleteMediaGroup";

            cmd.Parameters.AddWithValue("@MediaID", MediaID);

            dal.ExecuteProcNonQuery(cmd);
        }