public UsersController(CarWashContext context, ILogger <UsersController> logger, UserManager <User> userManager, SignInManager <User> signInManager) { _context = context; _userManager = userManager; _signInManager = signInManager; _logger = logger; }
public UnitOfWork(CarWashContext context) { _context = context; CustomerRepository = new GenericRepository <Customer>(context); CarRepository = new GenericRepository <Car>(context); OperationRepository = new GenericRepository <Operation>(context); GateRepository = new GenericRepository <Gate>(context); ReservationRepository = new GenericRepository <Reservation>(context); CarBrandRepository = new GenericRepository <CarBrand>(context); CarModelRepository = new GenericRepository <CarModel>(context); }
public static List <Statistic> GetData() { List <Statistic> stats = new List <Statistic>(); using (var context = new CarWashContext()) { foreach (var stat in context.Statistics) { stats.Add(stat); } } return(stats); }
public AfterloginController(CarWashContext context) { _context = context; }
public GenericRepository(CarWashContext _context) { this._context = _context; table = _context.Set <T>(); }
public CarsController(CarWashContext context) { _context = context; }
public LocationsController(CarWashContext context) { _context = context; }
public ReservationsController(CarWashContext context) { _context = context; }
public TypesController(CarWashContext context) { _context = context; }