Click or drag to resize

CaseManagerByClient Method

Retrieves a list of cases for the provided client

Namespace:  Law.EdaIntegration.Case
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.2
Syntax
C#
public IEnumerable<CaseListing> ByClient(
	string clientName
)

Parameters

clientName
Type: SystemString
The name of the client

Return Value

Type: IEnumerableCaseListing
A list of Cases
Examples
The following example demonstrates retrieving the list of cases for a client.
C#
using Law.EdaIntegration;
using Law.EdaIntegration.Case;

class Sample
{
    public static void Main()
    {
        string connectionString = @"Data Source=localhost;Initial Catalog=EDA_Management;Integrated Security=False;User ID=myUserId;Password=myPassword";
        EdaIntegration edaIntegration = new EdaIntegration();
        edaIntegration.InitializeEnvironment(connectionString);

        string client = "Client 456";
        foreach (CaseListing edaCase in edaIntegration.Cases.ByClient(client))
        {
            Console.WriteLine("Case name: {0}", edaCase.Name);
            Console.WriteLine("Client: {0}", edaCase.Client);
            Console.WriteLine();
        }
    }
}    
/*
This example produces the following results:

   Case name: Case 2
   Client: Client 456

   Case name: Case 3
   Client: Client 456
 */
See Also