// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, PartnerManagementContext dbContext) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseStaticFiles(); app.UseAuthentication(); app.UseCors("AllowAnyOrigin"); app.UseMiddleware(middleware: typeof(ErrorHandlingMiddleware)); app.UseMvc(); // // ===== Create tables ====== // dbContext.Database.EnsureCreated(); }
public SubscriptionController(PartnerManagementContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public InvoiceDetailController(PartnerManagementContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public RepController(PartnerManagementContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public MailSenderController(PartnerManagementContext context, IMapper mapper) { _context = context; _mapper = mapper; }