Пример #1
0
 public ActionResult Edit(int id)
 {
     PeopleModel m = new PeopleModel{ IdPersona = id };
     if (id != 0)
     {
         m.GetCustomSinglePeople();
     }
     return PartialView("_PeopleEdit",m);
 }
Пример #2
0
        public object jBuscarCliente(string Buscar, int?items)
        {
            Entities.StartGymDB             db = new Entities.StartGymDB();
            IEnumerable <CustomPeopleModel> r  = PeopleModel.GetCustomSearchPeople(Buscar.Trim());

            if (r != null && r.Count() > 0)
            {
                return(r.Select(m => new { IdPersona = m.IdPersona, Persona = string.Concat(m.Nombre, " ", m.ApePaterno, " ", m.ApeMaterno, m.RFC.Trim()) }).ToList());
            }
            return(null);
        }