Beispiel #1
0
        // GET: api/Person/5
        public Person Get(int idPerson)
        {
            PersonApp pa     = new PersonApp();
            Person    person = pa.GetPerson(idPerson);

            //person.idPerson =  id;
            //person.firstName = "Bac";
            //person.lastName = "Le Phuoc";
            //person.dateOfBirth = "03/02/1996";
            return(person);
        }
Beispiel #2
0
        // GET: api/Person
        //public IEnumerable<string> Get()
        //{
        //    return new string[] { "Person1", "Person2" };
        //}
        public ArrayList Get()
        {
            PersonApp pa = new PersonApp();

            return(pa.GetPerson());
        }