// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, UPtelContext Dbcontext, UserManager <IdentityUser> gestorUtilizadores, RoleManager <IdentityRole> gestorRoles) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); app.UseMigrationsEndPoint(); } else { app.UseExceptionHandler("/Home/Error"); // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. app.UseHsts(); } app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseRouting(); app.UseAuthentication(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllerRoute( name: "default", pattern: "{controller=Home}/{action=Index}/{id?}"); endpoints.MapRazorPages(); }); if (env.IsDevelopment()) { SeedData.InsereDadosTeste(Dbcontext); SeedData.InsereDadosTestePaginacaoPesquisa(Dbcontext); SeedData.InsereRolesAsync(gestorRoles).Wait(); SeedData.InsereAdministradorPadraoAsync(gestorUtilizadores).Wait(); SeedData.InsereUtilizadoresFicticiosAsync(gestorUtilizadores).Wait(); } }
public OperadorViewModelController(UPtelContext context, UserManager <IdentityUser> gestorUtilizadores) { _context = context; _gestorUtilizadores = gestorUtilizadores; }
public PromoNetMovelController(UPtelContext context) { _context = context; }
public PromoTelevisaoController(UPtelContext context) { _context = context; }
public MesesController(UPtelContext context) { _context = context; }
public TelefoneController(UPtelContext context) { _context = context; }
public ContratoPromoNetFixaController(UPtelContext context) { _context = context; }
public CanaisController(UPtelContext context) { _context = context; }
public PromoTelemovelController(UPtelContext context) { _context = context; }
public DistritoController(UPtelContext context) { _context = context; }
public FaturaClienteController(UPtelContext context) { _context = context; }
public PacotesController(UPtelContext context) { _context = context; }
public FaturacaoOperadorController(UPtelContext context) { _context = context; }
public UserTypeController(UPtelContext context) { _context = context; }
public ReclamacaoController(IEmailSender emailSender, IWebHostEnvironment env, UPtelContext context) { _emailSender = emailSender; _context = context; }
public TesteEmailController(IEmailSender emailSender, IWebHostEnvironment env, UPtelContext context) { _emailSender = emailSender; bd = context; }
public ContratoPromoTelefoneController(UPtelContext context) { _context = context; }
public NetFixaController(UPtelContext context) { _context = context; }