示例#1
0
        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)}

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

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