public UsersController( ILogger <UsersController> logger, MealsDbContext dbContext, UserManager <User> userManager ) { this.logger = logger; this.dbContext = dbContext; this.userManager = userManager; }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, MealsDbContext mealsDbContext) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseHsts(); } app.UseHttpsRedirection(); app.UseSwagger(); app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "Meal Order API")); app.UseMvc(); }
public MealsController(ILogger <MealsController> logger, MealsDbContext dbContext) { this.logger = logger; this.dbContext = dbContext; }
public InjectFilterImpl(MealsDbContext dbContext, string routeUserIdParam, params string[] roles) { this.dbContext = dbContext; this.routeUserIdParam = routeUserIdParam; this.roles = roles ?? new string[0]; }
public RestaurantsRepository(MealsDbContext context) { _context = context; }
public MealsService(MealsDbContext db, IMapper mapper, IBus publisher) : base(db) { this.mapper = mapper; this.publisher = publisher; }
public MealsRepository(MealsDbContext context) { _context = context; }