public JwtService( UserManager <User> userManager, SignInManager <User> signInManager, TrainSystemContext context, IConfiguration configuration) { _userManager = userManager; _signInManager = signInManager; _context = context; _configuration = configuration; }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, TrainSystemContext context) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseRouting(); app.UseAuthentication(); app.UseAuthorization(); app.UseCors(builder => builder.WithOrigins("*").AllowAnyHeader().AllowAnyMethod()); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); context.Database.Migrate(); }
public StopToRouteService(TrainSystemContext context) { _context = context; }
public UserService(TrainSystemContext context) { _context = context; }
public DiscountService(TrainSystemContext context) { _context = context; }
public RideService(TrainSystemContext context) { _context = context; }
public TrainStopService(TrainSystemContext context) { _context = context; }