ICaseManagerUpdate Method |
Namespace: EdaIntegrationContract
void Update( ICase theCase )
using EdaIntegrationContract; using EdaIntegrationContract.Case; class Sample { public static void Main() { var edaIntegration = new EdaIntegration().ConnectToExplore(); // Open the case that needs to be modified. ICase edaCase = edaIntegration.Cases.OpenCaseByName("Case 2"); // Update the information on the case that needs to be changed and save it. edaCase.Description = "An updated description for case 2"; edaCase.Client = "Client 54"; edaIntegration.Cases.Update(edaCase); // Re-retrieve the data from the database ICase edaCase2 = edaIntegration.Cases.OpenCaseByName("Case 2"); // Display the updated values. Console.WriteLine("Name: " + edaCase2.Name); Console.WriteLine("Client: " + edaCase2.Client); Console.WriteLine("Description: " + edaCase2.Description); Console.WriteLine("Last Accessed: " + edaCase2.LastAccessed); } } /* This example produces the following results: Name: Case 2 Client: Client 54 Description: An updated description for case 2 Last Accessed: 6/29/2014 09:23:12 AM */