public ActionResult Anular(int id = 0) { ViewBag.Clientes = new SelectList(cliente.GetAllClientes(), "ClienteId", "NombreCompleto"); ViewBag.Mascotas = new SelectList(mascota.GetAllMascotas(), "MascotaId", "Nombre"); if (consulta.GetConsulta(id) != null) { return(View(consulta.GetConsulta(id))); } return(View()); }
public ActionResult Mascotas(string search_query_top) { var lstMascotas = mascota.GetAllMascotas().Where(x => x.Nombre.Contains(search_query_top) || x.Raza.Descripcion.Contains(search_query_top)); return(View("Index", lstMascotas)); }
public ActionResult Index() { return(View(mascota.GetAllMascotas())); }