public TransportDataset GetDatastoreObject(string store, string number) { var datasetController = new DatasetController(); var dataset = datasetController.GetDataset(store, "PersonNumber", number).FirstOrDefault(); return(new TransportPerson(dataset as Person)); }
public List <TransportDataset> GetDatastoreObject(string store, string column, string value) { var datasetController = new DatasetController(); var datasets = datasetController.GetDataset(store, column, value); var result = new List <TransportDataset>(); foreach (var dataset in datasets) { if (dataset is Person) { result.Add(new TransportPerson(dataset as Person)); } } return(result); }