// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ADProjContext dbcontext) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseExceptionHandler("/Home/Error"); // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. app.UseHsts(); } app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseRouting(); app.UseAuthorization(); app.UseSession(); app.UseEndpoints(endpoints => { endpoints.MapControllerRoute( name: "default", pattern: "{controller=Home}/{action=Index}/{id?}"); }); dbcontext.Database.EnsureDeleted(); dbcontext.Database.EnsureCreated(); new DBSeeder(dbcontext); }
public mGroupController(ADProjContext context, IGroupService groupService, IUserService userService, IRecipeService recipeService) { _context = context; _groupService = groupService; _usersService = userService; _recipesService = recipeService; }
public RequestController(ILogger <RequestController> logger, RequestServices requestService, RequestDetailService requestDetailService, InventoryService inventoryItemService, Emailservice emailService, ADProjContext dbcontext) { _logger = logger; this.requestService = requestService; this.requestDetailService = requestDetailService; this.inventoryItemService = inventoryItemService; this.emailService = emailService; this.dbcontext = dbcontext; }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ADProjContext db, UserManager <ApplicationUser> um) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); app.UseMigrationsEndPoint(); } else { app.UseExceptionHandler("/Home/Error"); // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. app.UseHsts(); } /* app.UseCors("ReactPolicy"); */ db.Database.EnsureDeleted(); db.Database.EnsureCreated(); new DbSeedData(db, um).Init(); new LegitRecipesSeed(db, um).Init(); app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseRouting(); app.UseAuthentication(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllerRoute( name: "default", pattern: "{controller=Home}/{action=Index}/{id?}"); endpoints.MapRazorPages(); }); }
public GroupService(ADProjContext context) { _context = context; }
public RecipeService(ADProjContext context) { _context = context; }
public DbSeedData(ADProjContext db, UserManager <ApplicationUser> _userManager) { this.db = db; this._userManager = _userManager; }
public RecipesController(ADProjContext context, IRecipeService recipeService) { _context = context; _recipesService = recipeService; }
public RetrievalService(ADProjContext adProjContext) { this.adProjContext = adProjContext; }
public DisbursementService(ADProjContext dbcontext, DepartmentService deptsvc, InventoryService invsvc) { this.dbcontext = dbcontext; this.deptsvc = deptsvc; this.invsvc = invsvc; }
public TrendAnalysisService(ADProjContext dbcontext) { this.dbcontext = dbcontext; }
public SupplierService(ADProjContext adProjContext) { this.adProjContext = adProjContext; }
public GroupsController(ADProjContext context, IGroupService groupService, IUserService userService) { _context = context; _groupService = groupService; _userService = userService; }
public GenerateTag(IRecipeService recipeService, ADProjContext context) { _recipesService = recipeService; _context = context; }
public PurchaseOrderServices(ADProjContext dbcontext) { this.dbcontext = dbcontext; }
public DisbursementClerkAPIController(ADProjContext context, DisbursementAPIService disbursementapiservice) { _context = context; this.disbursementapiservice = disbursementapiservice; }
public DisbursementAPIService(ADProjContext dbcontext, Emailservice ems) { this.dbcontext = dbcontext; this.ems = ems; }
public RequestServices(ADProjContext dbcontext) { this.dbcontext = dbcontext; }
public CommentService(ADProjContext context) { _context = context; }
public InventoryService(ADProjContext adProjContext) { this.adProjContext = adProjContext; }
public mUserGroupController(ADProjContext context, IUserService userService) { _context = context; _usersService = userService; }
public DepartmentService(ADProjContext dbcontext, EmployeeService es) { this.dbcontext = dbcontext; this.es = es; }
public AdjustmentVoucherValidation(ADProjContext dbcontext) { this.dbcontext = dbcontext; }
public LegitRecipesSeed(ADProjContext db, UserManager <ApplicationUser> _userManager) { this.db = db; this._userManager = _userManager; }
public RequestDetailService(ADProjContext dbcontext) { this.dbcontext = dbcontext; }
public HomeController(ADProjContext context, IRecipeService recipeService, IGroupService groupService) { _context = context; _recipeService = recipeService; _groupService = groupService; }
public EmployeeService(ADProjContext dbcontext) { this.dbcontext = dbcontext; }
public UserService(ADProjContext context, UserManager <ApplicationUser> userManager) { _context = context; _userManager = userManager; }
public Emailservice(ADProjContext dbcontext) { this.dbcontext = dbcontext; }
public CommentsController(ADProjContext context, ICommentService commentService, IUserService userService) { _context = context; _commentService = commentService; _userService = userService; }