Пример #1
0
        public Dictionary <string, object> BindNotification1(EmailWise Data)
        {
            if (Data.NotiType == "1")
            {
                try
                {
                    var results = Common.Getdata(context.MultipleResults("[dbo].[Sp_NotesMaster]").With <AllNotification>().Execute("@QueryType", "@EmailId", "@Searchvalue", "BindSearchNotificatedata", Data.EmailId, Data.Searchvalue.Trim()));

                    return(results);
                }
                catch (Exception ex)
                {
                    throw ex;
                }
            }
            else
            {
                try
                {
                    var results = Common.Getdata(context.MultipleResults("[dbo].[Sp_NotesMaster]").With <AllNotification>().Execute("@QueryType", "@EmailId", "@Searchvalue", "BindSearchNotificatedata1", Data.EmailId, Data.Searchvalue.Trim()));

                    return(results);
                }
                catch (Exception ex)
                {
                    throw ex;
                }
            }
        }
Пример #2
0
        public Dictionary <string, object> BindNotification2(EmailWise Data)
        {
            try
            {
                var results = Common.Getdata(context.MultipleResults("[dbo].[Sp_NotesMaster]").With <Totalcount>().With <Totalcount>().With <Totalcount>().Execute("@QueryType", "@EmailId", "BindNotificatedataCount", Data.EmailId));

                return(results);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Пример #3
0
        public Dictionary <string, object> BindDataNotification(EmailWise Data)
        {
            try
            {
                var results = Common.Getdata(context.MultipleResults("[dbo].[Sp_NotesMaster]").With <Notedata>().Execute("@QueryType", "@EmailId", "@NMId", "UpdateNotificatedata", Data.EmailId, Data.NotiType));

                return(results);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }