public AdopcionController(TvAContext context) { _context = context; if (_context.AdopcionItems.Count() == 0) { _context.AdopcionItems.Add(new AdopcionItem { Cod_Personna = "", NombreCompleto = " ", Telefono = "", Direccion = " ", Sexo = " ", Edad = "" }); _context.SaveChanges(); } }
public MascotaController(TvAContext context) { _context = context; if (_context.MascotaItems.Count() == 0) { _context.MascotaItems.Add(new MascotaItem { Nombre = " Pini ", Sexo = "F ", Raza = " pudul", TipoMascota = "", Descripcion = "hfhhdjkd " }); _context.SaveChanges(); } }