Пример #1
0
		public Advertisement Get(int id)
		{
			AdvertService ads = new AdvertService(auth);
			Advertisement ad = ads.GetActive().First(p => p.Id == id);
			if (ad == null)
				return null;
			return ad;
		}
Пример #2
0
		public bool Close(int id)
		{
			AdvertService ad = new AdvertService(auth);
			return ad.Close(id);
		}
Пример #3
0
		public List<Advertisement> GetAll()
		{
			AdvertService ad = new AdvertService(auth);
			return ad.GetActive();
		}
Пример #4
0
		public bool Post(Advertisement ad)
		{
			AdvertService ads = new AdvertService(auth, captcha);

			return ads.Post(ad);
		}
Пример #5
0
		public Advertisement Get(string url)
		{
			AdvertService ad = new AdvertService(auth);
			return ad.Get(url);
		}
Пример #6
0
		public bool Delete(int id)
		{
			AdvertService ad = new AdvertService(auth);
			return ad.Delete(id);
		}