예제 #1
0
 public SparePartController(IReadModelDatabase database, IMapper mapper,
                            ISparePartRepository sparePartRepository, IUnitOfWork unitOfWork, IUserRepository userRepository)
     : base(database, mapper, unitOfWork, userRepository)
 {
     _unitOfWork          = unitOfWork;
     _sparePartRepository = sparePartRepository;
     _mapper   = mapper;
     _database = database;
 }
예제 #2
0
        public CarsController()
        {
            var context = new MyDbContext();

            this.carsRepo       = new CarRepository(context);
            this.customersRepo  = new CustomerRepository(context);
            this.jobsRepo       = new JobRepository(context);
            this.sparePartsRepo = new SparePartRepository(context);

            var store = new UserStore <ApplicationUser>(context);

            store.AutoSaveChanges = false;
            this.manager          = new ApplicationUserManager(store);
        }
예제 #3
0
 public AdminController(ISparePartRepository repo)
 {
     _db = repo;
 }
예제 #4
0
 public SparePartService(ISparePartRepository sparePartRepository, IImageService imageService)
 {
     _sparePartRepository = sparePartRepository;
     _imageService        = imageService;
 }
 public SparePartController(ISparePartRepository db)
 {
     _db = db;
 }
예제 #6
0
 public CartController(ISparePartRepository db, IOrderRepository odb)
 {
     _db=db;
     _odb=odb;
 }