Exemplo n.º 1
0
        public void Configure(
            IApplicationBuilder app,
            IHostingEnvironment env,
            AppDataFiscalContext dataFiscalContext)
        {
            dataFiscalContext.Database.EnsureCreated();

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

            app.UseHttpsRedirection();
            app.UseStaticFiles();
            app.UseCookiePolicy();
            app.UseAuthentication();

            app.UseMvc(routes =>
            {
                routes.MapRoute(
                    name: "default",
                    template: "{controller=Home}/{action=Index}/{id?}");
            });
        }
Exemplo n.º 2
0
 public OperatorController(
     UserManager <User> userManager,
     AppDataFiscalContext context)
 {
     _userManager = userManager;
     _context     = context;
 }
Exemplo n.º 3
0
 public AccountController(UserManager <User> userManager, SignInManager <User> signInManager,
                          IEmailSender emailSender, AppDataFiscalContext context)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _emailSender   = emailSender;
     _context       = context;
 }
 public InitializeCashDeskController(UserManager <User> userManager, AppDataFiscalContext context)
 {
     _userManager = userManager;
     _context     = context;
 }