Esempio n. 1
0
 public IEnumerable<Person> ReadAllPersons()
 {
     var restDBDataContext = new RestDBDataContext(GetConnectionString());
     var personResults = restDBDataContext.ReadAllPersons();
     return personResults;
 }
Esempio n. 2
0
 public Person GetPerson(string ID)
 {
     var restDBDataContext = new RestDBDataContext(GetConnectionString());
     var personResults = restDBDataContext.ReadPersonByID(Convert.ToInt32(ID));
     return personResults.First();
 }