public object PostPreLogin([FromBody] NotifNewId notifNewIdObj)
        {
            try
            {
                int status = 0;
                if (!string.IsNullOrEmpty(notifNewIdObj.DeviceId))
                {
                    object[] insertNewId = new object[4];
                    insertNewId[0] = notifNewIdObj.CompId;
                    insertNewId[1] = notifNewIdObj.DeviceId;
                    insertNewId[2] = notifNewIdObj.EmpNo;
                    insertNewId[3] = notifNewIdObj.UserId;

                    status = DataCreator.ExecuteProcedure("INSERT_NOTIF_DEVICE_ID", insertNewId);        //INSERT NEW ID FOR USER
                }

                DataTable outstandingMsgDt = _notifObj.GetOustandingNotifications(notifNewIdObj.CompId, notifNewIdObj.EmpNo);

                //NOT USED SO AS TO PERSIST NOTIFICATIONS
                //object[] updateNotifMsg = new object[3];
                //updateNotifMsg[0] = notifNewIdObj.CompId;
                //updateNotifMsg[1] = notifNewIdObj.UserId;
                //updateNotifMsg[2] = notifNewIdObj.UserId;

                //status = DataCreator.ExecuteProcedure("UPDATE_NOTIF_MSG_TEMP", updateNotifMsg);          //UPDATE SENT NOTIFICATIONS IN TABLE

                return(new { Status = status, Values = outstandingMsgDt });
            }
            catch (Exception ex)
            {
                ex.Log();
                throw new ExternalException();
            }
        }
        public object PostNewDevId([FromBody] NotifNewId notifNewIdObj)
        {
            try
            {
                object[] insertDevId = new object[1];
                insertDevId[0] = notifNewIdObj.DeviceId;

                int status = DataCreator.ExecuteProcedure("INSERT_NOTIF_FCM_DEVICE_ID", insertDevId);

                return(new { Status = status });
            }
            catch (Exception ex)
            {
                ex.Log();
                throw new ExternalException();
            }
        }
        public object PostPreLogout([FromBody] NotifNewId notifNewIdObj)
        {
            try
            {
                int status = 0;
                if (!string.IsNullOrEmpty(notifNewIdObj.DeviceId))
                {
                    object[] insertRemoveId = new object[4];
                    insertRemoveId[0] = notifNewIdObj.CompId;
                    insertRemoveId[1] = notifNewIdObj.DeviceId;
                    insertRemoveId[2] = notifNewIdObj.EmpNo;
                    insertRemoveId[3] = notifNewIdObj.UserId;

                    status = DataCreator.ExecuteProcedure("DELETE_NOTIF_DEVICE_ID", insertRemoveId);
                }

                return(new { Status = status });
            }
            catch (Exception ex)
            {
                ex.Log();
                throw new ExternalException();
            }
        }