public static int Delete(Ads ads) { dAds _dads = new dAds(); if (Convert.ToBoolean(ConfigurationSettings.AppSettings["IsEmailEnable"])) { string mailBody = MailHelper.ActivityMail("Ads", "Ads Deletion done on" + ads.Ads_RedirectUrl + "( " + ads.Ads_Id + " and " + ads.AdsCode + " ) successfully.", 1, DateTime.Now.ToString()); MailHelper.SendEmail(MailHelper.EmailToSend(), "Ads Deletion", mailBody, "Rachna Teracotta : Activity Admin"); } return(_dads.Delete(ads)); }
public static List <Ads> List() { dAds _dads = new dAds(); return(_dads.List()); }