// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure( IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, FormPdfEasyContext formPdfEasyContext) { loggerFactory.AddNLog(); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } //TODO: implement database seed AutoMapper.Mapper.Initialize(config => { config.CreateMap <CustomUser, CustomUserDto>(); }); app.UseAuthentication(); app.UseMvc(); }
public UserRepository(FormPdfEasyContext context) { _context = context; }