Exemplo n.º 1
0
        // 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;
 }
Exemplo n.º 3
0
 public InvoiceDetailController(PartnerManagementContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
Exemplo n.º 4
0
 public RepController(PartnerManagementContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
 public MailSenderController(PartnerManagementContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }