public bool UpdateTowerMessage(AssetsViewDTO Tower)
        {
            //var client = new SmartTowerIntegrationServiceClient();

            TowerMessageDTO towerMessage = new TowerMessageDTO
            {
                ArabicMessage      = SelectedAction.MessageDescription,
                EnableNotification = true,
                MessageId          = SelectedAction.MessageId,
                MessageType        = 1,
                MyLastUpdate       = DateTime.Now,
                TowerId            = SelectedAction.Location,
                MixedMessage       = "",
                EnglishMessage     = "",
                IncidentImage      = ""
            };

            //var result = client.UpdateTowerCurrentMessageAsync(towerMessage);
            if (Tower.SelectedAction != null)
            {
                _client.UpdateAssetValueAsync(Tower.ItemId, Tower.SelectedAction.Description);
            }
            SmartTowerDAL smartTowerDAL = new SmartTowerDAL();

            return(smartTowerDAL.UpdateTowerCurrentMessage(towerMessage)); //result.Result;
        }
        public bool UpdateTowerCurrentMessage(TowerMessageDTO TowerMessage)
        {
            List <string> pUsers = new UsersDAL().GetActivePublicUsers().Select(x => x.NotificationToken).ToList();

            if (pUsers != null)
            {
                new ServiceLayer().SendNotification(pUsers, TowerMessage.ArabicMessage);
            }

            SmartTowerDAL smartTowerDAL = new SmartTowerDAL();

            return(smartTowerDAL.UpdateTowerCurrentMessage(TowerMessage));
        }