Esempio n. 1
0
        Person InterfacePerson.GetPersonById(int id)
        {
            PersonContex person = new PersonContex();

            return(person.GetById(id));
        }
Esempio n. 2
0
        List <string> InterfacePerson.GetAllPeopleNames()
        {
            PersonContex person = new PersonContex();

            return(person.GetAllNames());
        }
Esempio n. 3
0
        Person InterfacePerson.GetOrCreatePerson(string firstName, string lastName)
        {
            PersonContex person = new PersonContex();

            return(person.GetOrCreate(firstName, lastName));
        }
Esempio n. 4
0
        List <Person> InterfacePerson.GetAllPeople()
        {
            PersonContex person = new PersonContex();

            return(person.GetAll());
        }
Esempio n. 5
0
        bool InterfacePerson.AddPerson(string firstName, string lastName)
        {
            PersonContex person = new PersonContex();

            return(person.Add(firstName, lastName));
        }
Esempio n. 6
0
        bool InterfacePerson.DeletePerson(int id)
        {
            PersonContex person = new PersonContex();

            return(person.Delete(id));
        }