public ActionResult Index()
        {
            var medicos = MedicoBL.BuscaMedicos();

            return(View(medicos));
        }
        public ActionResult Buscar(string crm)
        {
            var medicos = MedicoBL.BuscaMedicos();

            return(View("Index", medicos.Where(x => x.CRM.Equals(crm))));
        }
示例#3
0
 public IEnumerable <Medico> Get()
 {
     return(MedicoBL.BuscaMedicos());
 }