Esempio n. 1
0
 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));
        }
Esempio n. 3
0
 public ActionResult Index()
 {
     return(View(mascota.GetAllMascotas()));
 }