public MascotaController(AdopcionDataContext _context, MascotaAppService mascotaAppService) { _baseDatos = _context; _mascotaAppService = mascotaAppService; if (_baseDatos.Mascotas.Count() == 0) { _baseDatos.Mascotas.Add(new Mascota { nombre = "Ellie", descripcion = "Very cute 3 year-old cat.", imagenURL = "https://www.infobae.com/new-resizer/H2YD9fPh4_fFfmg3_ujr3Y1SST0=/420x236/filters:format(jpg):quality(85)/s3.amazonaws.com/arc-wordpress-client-uploads/infobae-wp/wp-content/uploads/2019/01/20085328/Boo-perrito-mas-lindo-del-mundo-7.jpg", refugioId = 1 }); _baseDatos.SaveChanges(); } }
public RefugioController(AdopcionDataContext _context, RefugioAppService refugioAppService) { _baseDatos = _context; _refugioAppService = refugioAppService; if (_baseDatos.Refugios.Count() == 0) { _baseDatos.Refugios.Add(new Refugio { nombre = "SOS Rescate Animal", correoElectronico = "*****@*****.**", contrasena = "contrasena123", imagenURL = "https://miro.medium.com/max/11520/1*MKkufG0eyT0IQ5wZ70qKxQ.jpeg" }); _baseDatos.SaveChanges(); } }