예제 #1
0
 public AccountController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IOptions <IdentityCookieOptions> identityCookieOptions,
     IEmailSender emailSender,
     ISmsSender smsSender,
     ILoggerFactory loggerFactory, TFEContext context, RoleManager <IdentityRole> roleManager)
 {
     _userManager          = userManager;
     _signInManager        = signInManager;
     _externalCookieScheme = identityCookieOptions.Value.ExternalCookieAuthenticationScheme;
     _emailSender          = emailSender;
     _smsSender            = smsSender;
     _logger      = loggerFactory.CreateLogger <AccountController>();
     _context     = context;
     _roleManager = roleManager;
 }
 public CategoriesController(TFEContext context)
 {
     _context = context;
 }
예제 #3
0
 public HistoriquesController(TFEContext context)
 {
     _context = context;
 }
예제 #4
0
 public RepresentantsController(TFEContext context)
 {
     _context = context;
 }
예제 #5
0
 public HorrairesController(TFEContext context)
 {
     _context = context;
 }
예제 #6
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, TFEContext context, ApplicationDbContext contextIdentity, UserManager <ApplicationUser> userManager, RoleManager <IdentityRole> roleManager)
        {
            app.UseStatusCodePagesWithReExecute("/StatusCode/{0}");
            //app.UseStatusCodePages();
            app.UseSession();
            loggerFactory.AddConsole(Configuration.GetSection("Logging"));
            loggerFactory.AddDebug();

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

            app.UseStaticFiles();

            app.UseSession();

            app.UseIdentity();


            //context.Database.Migrate();
            // Add external authentication middleware below. To configure them please see https://go.microsoft.com/fwlink/?LinkID=532715

            app.UseMvc(routes =>
            {
                routes.MapRoute(
                    name: "default",
                    template: "{controller=Horraires}/{action=Index}/{id?}");
            });
            DbInitializer.Initialize(context);
            contextIdentity.Database.Migrate();
            DbInitializer.Initialize2(contextIdentity, userManager, roleManager);
        }
예제 #7
0
 public RechercheViewComponent(UserManager <ApplicationUser> userManager, TFEContext context)
 {
     _context     = context;
     _userManager = userManager;
 }
예제 #8
0
 public EvenementsController(TFEContext context)
 {
     _context = context;
 }
예제 #9
0
 public ClientsController(TFEContext context, UserManager <ApplicationUser> userManager, RoleManager <IdentityRole> roleManager)
 {
     _context     = context;
     _userManager = userManager;
     _roleManager = roleManager;
 }
예제 #10
0
 public ClientsController(TFEContext context)
 {
     _context = context;
 }
예제 #11
0
 public ProduitsController(TFEContext context)
 {
     _context = context;
 }
예제 #12
0
 public CommandesController(UserManager <ApplicationUser> userManager, TFEContext context)
 {
     _context     = context;
     _userManager = userManager;
 }
예제 #13
0
 public AttributsController(TFEContext context)
 {
     _context = context;
 }
예제 #14
0
 public TauxTVAsController(TFEContext context)
 {
     _context = context;
 }
예제 #15
0
 public MotClefsController(TFEContext context)
 {
     _context = context;
 }
예제 #16
0
 public PaniersController(UserManager <ApplicationUser> userManager, TFEContext context)
 {
     _context     = context;
     _userManager = userManager;
 }
예제 #17
0
 public FournisseursController(TFEContext context)
 {
     _context = context;
 }
예제 #18
0
 public AdressesController(TFEContext context)
 {
     _context = context;
 }
예제 #19
0
 public FacturesController(TFEContext context)
 {
     _context = context;
 }