public PersonApiController()
        {
            _people = new List<Person>();
            _peopleCtrl = new PersonService();

            //_people.AddRange(new REP001.Comun.BO.Person[]{
            //new REP001.Comun.BO.Person{ID=1,Name="Daniela",LastName="Avila",DateBird=DateTime.Today.AddDays(-27)},
            //new REP001.Comun.BO.Person{ID=2,Name="Angelina",LastName="Avila",DateBird=DateTime.Today.AddDays(-29)},
            //new REP001.Comun.BO.Person{ID=3,Name="Angelina",LastName="Avila",DateBird=DateTime.Today.AddDays(-21)}

            //});
        }
        public ActionResult PersonSearchPartial()
        {
            PersonService personCtrl = new PersonService();
            List<Person> ls = personCtrl.RetrievePersons();

            return PartialView("_PersonSearchPartial",ls);
        }
Beispiel #3
0
 public List<Person> DoSearchByName(string name)
 {
     PersonService personServ = new PersonService();
     return personServ.RetrievePersonsByName(name);
 }