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; }
public bool Close(int id) { AdvertService ad = new AdvertService(auth); return ad.Close(id); }
public List<Advertisement> GetAll() { AdvertService ad = new AdvertService(auth); return ad.GetActive(); }
public bool Post(Advertisement ad) { AdvertService ads = new AdvertService(auth, captcha); return ads.Post(ad); }
public Advertisement Get(string url) { AdvertService ad = new AdvertService(auth); return ad.Get(url); }
public bool Delete(int id) { AdvertService ad = new AdvertService(auth); return ad.Delete(id); }