public VehicleServiceTests()
 {
     this.dbContext      = base.DatabaseInstance;
     this.vehicleService = new VehicleService(this.dbContext, Mapper.Instance);
 }
 public PartService(CarDealerDbContext db)
 {
     this.db = db;
 }
示例#3
0
 public CarsController(CarDealerDbContext context)
 {
     this.context = context;
 }
示例#4
0
 public CarService(CarDealerDbContext db)
 {
     this._db = db;
 }
示例#5
0
 public PartService(CarDealerDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
 public LogsController(CarDealerDbContext db)
 {
     this.logs = new LogService(db);
 }
 public ManufacturerServiceTests()
 {
     this.dbContext           = base.DatabaseInstance;
     this.manufacturerService = new ManufacturerService(this.dbContext, Mapper.Instance);
 }
示例#8
0
        public AppUser GetUser(string Id)
        {
            CarDealerDbContext context = new CarDealerDbContext();

            return(context.Users.Find(Id));
        }
示例#9
0
 public DatabaseInitializerService(CarDealerDbContext context, IMapper mapper)
 {
     this.context      = context;
     this.mapper       = mapper;
     this.rndGenerator = new Random();
 }
示例#10
0
 public LoggerController(CarDealerDbContext context)
 {
     this.context = context;
 }
 public Serializer(CarDealerDbContext db)
 {
     this.db = db;
 }
示例#12
0
 public PartsServices(CarDealerDbContext context)
 {
     this._context = context;
 }
 public PictureService(CarDealerDbContext db)
     : base(db)
 {
 }
示例#14
0
 public LogServices(CarDealerDbContext db)
 {
     this.db = db;
 }
示例#15
0
 public LogServiceTests()
 {
     this.dbContext  = base.DatabaseInstance;
     this.logService = new LogService(this.dbContext, Mapper.Instance);
 }
示例#16
0
 public CarService(CarDealerDbContext database)
 {
     this.database = database;
 }
 public SaleService(CarDealerDbContext context, IMapper mapper)
 {
     this.context = context;
     this.mapper  = mapper;
 }
 public CustomerService(CarDealerDbContext db, IMapper mapper)
 {
     this.db     = db;
     this.mapper = mapper;
 }
示例#19
0
 public CustomerServices(CarDealerDbContext context)
 {
     this._context = context;
 }
 public SupplierServices(CarDealerDbContext context)
 {
     this._context = context;
 }
示例#21
0
 public JsonProcessor()
 {
     this._dbContext = new CarDealerDbContext();
 }
示例#22
0
 public CarService(CarDealerDbContext db) => this.db = db;
示例#23
0
 public CarModelsController(CarDealerDbContext context)
 {
     _context = context;
 }
 public AdService(CarDealerDbContext db, IMapper mapper)
     : base(db)
 {
     this.mapper = mapper;
 }
 public VehicleElementService(CarDealerDbContext db) :
     base(db)
 {
 }
 public VehicleService(CarDealerDbContext db, IMapper mapper)
     : base(db)
 {
     this.configuration = mapper.ConfigurationProvider;
 }
 public SupplierService(CarDealerDbContext db)
 {
     this.db = db;
 }
示例#28
0
 public SalesService(CarDealerDbContext db)
 {
     this.db = db;
 }
 public CustomerService(CarDealerDbContext db)
 {
     this.db = db;
 }
        public IEnumerable <AppRole> RolesDropDown()
        {
            CarDealerDbContext context = new CarDealerDbContext();

            return(context.DBRoles.ToList());
        }