private void UpdateDoor()
 {
     try
     {
         UpdateMessageEvent?.Invoke("");
         var res = _doorManagementServiceIntegration.UpdateDoor(SelectedDoor).Result;
         if (res == 0)
         {
             UpdateMessageEvent?.Invoke("Door Update succeeded!");
         }
         else
         {
             UpdateMessageEvent?.Invoke("Update door failed!");
         }
     }
     catch (Exception ex)
     {
         Serilog.Log.Error("Update door failed", ex);
         UpdateMessageEvent?.Invoke("Update door failed!");
     }
 }
        private void AddDoor()
        {
            try
            {
                UpdateMessageEvent?.Invoke("");
                int res = _doorManagementServiceIntegration.AddDoor(SelectedDoor).Result;

                if (res == 0)
                {
                    UpdateMessageEvent?.Invoke("Door added successfully!");
                }
                else
                {
                    UpdateMessageEvent?.Invoke("Add door failed!");
                }
            }
            catch (Exception ex)
            {
                Serilog.Log.Error("Add door failed", ex);
                UpdateMessageEvent?.Invoke("Add door failed!");
            }
        }