// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, UserManager <ApplicationUser> userManager, RoleManager <IdentityRole> roleManager, BankTransactionContext context) { if (env.IsDevelopment()) { var options = new DeveloperExceptionPageOptions { SourceCodeLineCount = 2 }; app.UseDeveloperExceptionPage(options); } else { app.UseExceptionHandler("/Home/Error"); // app.UseExceptionHandlingMiddleware(); app.UseHsts(); } var localizationOptions = app.ApplicationServices.GetService <IOptions <RequestLocalizationOptions> >().Value; app.UseRequestLocalization(localizationOptions); app.UseStaticFiles(); //app.UseStatusCodePages(); app.UseStatusCodePagesWithReExecute("/Error/{statusCode}"); app.UseCors(builder => builder.WithOrigins("https://en.wikipedia.org", "http://localhost:64943") .AllowAnyHeader() .AllowAnyMethod().AllowCredentials()); app.UseRouting(); app.UseSecurityJwt(); app.UseAuthentication(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllerRoute( name: "Area", pattern: "{area:exists}/{controller=Home}/{action=Index}/{id?}"); endpoints.MapControllerRoute( name: "default", pattern: "{controller=Home}/{action=Index}/{id?}"); }); }
public TransactionController(BankTransactionContext context) { _context = context; }
public ShareholderRepository(BankTransactionContext context) : base(context) { this.context = context; }
public CompanyRepository(BankTransactionContext context) : base(context) { this.context = context; }
public BaseRepository(BankTransactionContext context) { this.context = context; }
public PersonRepository(BankTransactionContext context) : base(context) { this.context = context; }
public UploadOFXController(BankTransactionContext context) { _context = context; }
public AccountRepository(BankTransactionContext context) : base(context) { this.context = context; }