Exemplo n.º 1
0
 public ProductsController(SaleDBContext context, IMapper mapper, IHostingEnvironment environment, IHubContext <EchoHub> hubContext)
 {
     _context     = context;
     _mapper      = mapper;
     _environment = environment;
     _hubContext  = hubContext;
 }
Exemplo n.º 2
0
 public UsersController(UserManager <User> userManager, IMapper mapper, SaleDBContext context, IOptions <JwtIssuerOptions> jwtOptions, RoleManager <IdentityRole <Guid> > roleManager)
 {
     _context     = context;
     _mapper      = mapper;
     _userManager = userManager;
     _jwtOptions  = jwtOptions.Value;
     _roleManager = roleManager;
 }
 public ExternalLoginController(IOptions <GoogleAuthSettings> ggAuthSettings, IOptions <FacebookAuthSettings> fbAuthSettingsAccessor
                                , UserManager <User> userManager, SaleDBContext appDbContext, IOptions <JwtIssuerOptions> jwtOptions)
 {
     _userManager    = userManager;
     _appDbContext   = appDbContext;
     _jwtOptions     = jwtOptions.Value;
     _ggAuthSettings = ggAuthSettings.Value;
     _fbAuthSettings = fbAuthSettingsAccessor.Value;
 }
Exemplo n.º 4
0
 public SuppliersController(SaleDBContext context)
 {
     _context = context;
 }
 public EvaluationQuestionsController(SaleDBContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
Exemplo n.º 6
0
 public UserInfoesController(SaleDBContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
 public OrdersImportGoodsController(SaleDBContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
Exemplo n.º 8
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, SaleDBContext context)
        {
            loggerFactory.AddConsole(Configuration.GetSection("Logging"));
            loggerFactory.AddDebug();

            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
                app.UseBrowserLink();
            }
            else
            {
                app.UseExceptionHandler("/Home/Error");
            }
            app.UseCors("CorsPolicy");

            app.UseStaticFiles();

            app.UseMvc(routes =>
            {
                routes.MapRoute(
                    name: "default",
                    template: "{controller=Sale}/{action=Index}/{id?}");
            });
        }
Exemplo n.º 9
0
 public Sale(SaleDBContext context)
 {
     this.context = context;
 }
Exemplo n.º 10
0
 public CartDetailsController(SaleDBContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
Exemplo n.º 11
0
 public SlideShowsController(SaleDBContext context, IHostingEnvironment environment)
 {
     _context     = context;
     _environment = environment;
 }
Exemplo n.º 12
0
 public AddressesController(SaleDBContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
Exemplo n.º 13
0
 public LocationTreeController(SaleDBContext context)
 {
     _context = context;
 }
Exemplo n.º 14
0
 public StatisticController(SaleDBContext context)
 {
     _context = context;
 }
Exemplo n.º 15
0
 public EventsController(SaleDBContext context)
 {
     _context = context;
 }
Exemplo n.º 16
0
 public LoginController(UserManager <User> userManager, IOptions <JwtIssuerOptions> jwtOptions, SaleDBContext context)
 {
     _userManager = userManager;
     _jwtOptions  = jwtOptions.Value;
     _context     = context;
 }
Exemplo n.º 17
0
 public LocalStorage(SaleDBContext saleDB)
 {
     _context = saleDB;
     table    = _context.Set <T>();
 }
Exemplo n.º 18
0
 public ProductCategoriesController(SaleDBContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
 public OrderDetailsController(SaleDBContext context)
 {
     _context = context;
 }