コード例 #1
0
        private static void testGetAdvertisement()
        {
            Advertisement        advertisement = new Advertisement();
            List <Advertisement> list          = SqlAdvertisement.GetAdvertisements(1);

            foreach (var item in list)
            {
                SqlAdvertisement.GetAdvertisement(item.DateFrom, item.DateTo, item.CourtID);
            }
        }
コード例 #2
0
        private static void testDeleteAdvertisement()
        {
            Advertisement        advertisement = new Advertisement();
            List <Advertisement> list          = SqlAdvertisement.GetAdvertisements(1);

            foreach (var item in list)
            {
                SqlAdvertisement.DeleteAdvertisement(item, 13);
            }
        }