public CreateModel(FuelLogger.Data.ApplicationDbContext context, UserManager <ApplicationUser> user)
        {
            _context          = context;
            _user             = user;
            AvailableVehicles = new List <SelectListItem>();

            foreach (var vehicle in _context.Vehicle)
            {
                AvailableVehicles.Add(new SelectListItem(vehicle.Name, vehicle.Id.ToString()));
            }
        }
Exemple #2
0
 public DetailsModel(FuelLogger.Data.ApplicationDbContext context)
 {
     _context = context;
 }
 public IndexModel(FuelLogger.Data.ApplicationDbContext context)
 {
     _context = context;
 }
Exemple #4
0
 public CreateModel(FuelLogger.Data.ApplicationDbContext context, UserManager <ApplicationUser> user)
 {
     _context = context;
     _user    = user;
 }