Exemplo n.º 1
0
        internal static void AddGiftToExpectedGifts(IGift gift, string eventId)
        {
            var resultDict = new Dictionary <string, string>();
            var query      = string.Format(Queries.CURDQueries.Gifts.InsertExpectedGifts.InsertIntoGift, eventId, gift.getId());
            var sqlCommand = new SqlCommand();

            sqlCommand.CommandText = query;
            using (var conn = new SqlConnection(connectionString))
            {
                conn.Open();
                sqlCommand.Connection = conn;
                sqlCommand.ExecuteNonQuery();
                conn.Close();
            }
        }
Exemplo n.º 2
0
 public void AddGiftToExpectedGifts(IGift gift, string eventId)
 {
     logger.InfoFormat("Adding gift with id {0} to exepcted gift list {1}", gift.getId(), eventId);
     GiftDao.AddGiftToExpectedGifts(gift, eventId);
 }