Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        public static List <Ads> List()
        {
            dAds _dads = new dAds();

            return(_dads.List());
        }