Пример #1
0
        public static IList<EmailQueue> Search(string stremailid, string strdeliverstatus, string strsentstatus, string date, string recieveraddressk)
        {
            int deliverStatus = -1;
            int sendingstatus = -1;
            int mailid = -1;
            if (strdeliverstatus != "")
                deliverStatus = Convert.ToInt32(strdeliverstatus);
            if (strsentstatus != "")
                sendingstatus = Convert.ToInt32(strsentstatus);
            if (stremailid != "")
                mailid = Convert.ToInt32(stremailid);

            EmailQueueDataMapper objCaller = new EmailQueueDataMapper();

            return objCaller.Search(mailid, deliverStatus, sendingstatus, date, recieveraddressk);
        }
Пример #2
0
        public static void Delete(int ID)
        {
            EmailQueueDataMapper objCaller = new EmailQueueDataMapper();

            objCaller.Delete(ID);
        }
Пример #3
0
        public static int GetCountforPendingEmails()
        {
            EmailQueueDataMapper objCaller = new EmailQueueDataMapper();

            return objCaller.GetCountforPendingEmails();
        }
Пример #4
0
        public static IList<EmailQueue> GetAllPending()
        {
            EmailQueueDataMapper objCaller = new EmailQueueDataMapper();

            return objCaller.GetAllPending();
        }
Пример #5
0
        public static EmailQueue GetByID(int ID)
        {
            EmailQueueDataMapper objCaller = new EmailQueueDataMapper();

            return objCaller.GetByID(ID);
        }
Пример #6
0
        public static void Update(EmailQueue obj)
        {
            EmailQueueDataMapper objCaller = new EmailQueueDataMapper();

            objCaller.Update(obj);
        }
Пример #7
0
        public static int Add(EmailQueue obj)
        {
            EmailQueueDataMapper objCaller = new EmailQueueDataMapper();

            return objCaller.Add(obj);
        }