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)))); }
public IEnumerable <Medico> Get() { return(MedicoBL.BuscaMedicos()); }