public CitaController(CitaContext context) { _context = context; if (_context.CitaItems.Count() == 0) { _context.CitaItems.Add(new CitaItem { Id = 131099, Nombre = "juyi", Apellido = "bolaño", Telefono = "30165165", Correo = "*****@*****.**", Fecha = "12/SEP/2019" }); _context.CitaItems.Add(new CitaItem { Id = 286455, Nombre = "cheyo", Apellido = "gonzalve", Telefono = "31813515", Correo = "*****@*****.**", Fecha = "10/AGO/2019" }); _context.SaveChanges(); } }
public CitasController(CitaContext context, Gmailsender emailSender) { this.context = context; this._emailSender = emailSender; }