public bool AddTagToRegistration(string Id, string tag) { try { // Return the installation for the specific ID. var installation = hub.GetInstallation(Id); hub.PatchInstallation(Id, new[] { new PartialUpdateOperation { Operation = UpdateOperationType.Add, Path = "/tags", Value = tag } }); return(true); } catch (MessagingException ex) { Debugger.Break(); } return(false); }