Example #1
0
        /* Delete from SGNotiInfo */
        public bool DeleteNotiInfo(SGNotiData notiData)
        {
            // Delete
            DBCtx.Remove(notiData);
            DBCtx.SaveChanges();
            Log.Information("Delete the SGNotiData, {NotiData}", notiData);

            return(true);
        }
Example #2
0
        /* Delete from SGNotiInfo */
        public bool DeleteNotiInfo(SGNotiData notiData)
        {
            mut.WaitOne();

            int nCount = SelectNotiInfoCount(notiData.Type, notiData.GroupId, notiData.UserSeq);

            if (nCount < 1)
            {
                mut.ReleaseMutex();
                return(true);
            }

            // Delete
            DBCtx.Remove(notiData);
            DBCtx.SaveChanges();
            Log.Information("Delete the SGNotiData, {NotiData}", notiData);
            mut.ReleaseMutex();

            return(true);
        }