// Constructor
        public PropietariosController(CrudTransporteContext contexts)
        {
            _context = contexts;

            /*     if (_context.Propietario.Count() == 0)
             *               {
             *               _context.Propietario.Add(new Propietarios { PropietarioId = 122343434 });                 _context.SaveChanges();
             *               }    */
        }
Example #2
0
        public ConductorController(CrudTransporteContext context)
        {
            _context = context;

            /* if (_context.conductors.Count() == 0)
             * {
             * _context.conductors.Add(new Conductor { Id_Conductor = 122343434 });                 _context.SaveChanges();
             * }         */
        }
Example #3
0
        public VehiculoController(CrudTransporteContext context)
        {
            _context = context;

            /*   if (_context.vehiculos.Count() == 0)
             * {
             * _context.vehiculos.Add(new Vehiculo { Id_vehiculo = 122343434 });                 _context.SaveChanges();
             * }         */
        }
Example #4
0
 public ValuesController(CrudTransporteContext context)
 {
     _context = context;
 }