public Task <List <Matter> > GetMattersForClient(Client client, string matterReference) { var dataSource = new MatterDataSource(_connectionString); return(Task.FromResult(dataSource.FindMatters(client.Id, matterReference))); }
public Task <Matter> GetMatterByReferenceAsync(string reference) { var dataSource = new MatterDataSource(_connectionString); return(Task.FromResult(dataSource.FindByReference(reference).SingleOrDefault())); }