// Constructor public PropietariosController(CrudTransporteContext contexts) { _context = contexts; /* if (_context.Propietario.Count() == 0) * { * _context.Propietario.Add(new Propietarios { PropietarioId = 122343434 }); _context.SaveChanges(); * } */ }
public ConductorController(CrudTransporteContext context) { _context = context; /* if (_context.conductors.Count() == 0) * { * _context.conductors.Add(new Conductor { Id_Conductor = 122343434 }); _context.SaveChanges(); * } */ }
public VehiculoController(CrudTransporteContext context) { _context = context; /* if (_context.vehiculos.Count() == 0) * { * _context.vehiculos.Add(new Vehiculo { Id_vehiculo = 122343434 }); _context.SaveChanges(); * } */ }
public ValuesController(CrudTransporteContext context) { _context = context; }