예제 #1
0
        // 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);
        }
예제 #2
0
 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;
 }
예제 #4
0
        // 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();
            });
        }
예제 #5
0
 public GroupService(ADProjContext context)
 {
     _context = context;
 }
예제 #6
0
 public RecipeService(ADProjContext context)
 {
     _context = context;
 }
예제 #7
0
 public DbSeedData(ADProjContext db, UserManager <ApplicationUser> _userManager)
 {
     this.db           = db;
     this._userManager = _userManager;
 }
예제 #8
0
 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;
 }
예제 #13
0
 public GroupsController(ADProjContext context, IGroupService groupService, IUserService userService)
 {
     _context      = context;
     _groupService = groupService;
     _userService  = userService;
 }
예제 #14
0
 public GenerateTag(IRecipeService recipeService, ADProjContext context)
 {
     _recipesService = recipeService;
     _context        = context;
 }
예제 #15
0
 public PurchaseOrderServices(ADProjContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
예제 #16
0
 public DisbursementClerkAPIController(ADProjContext context, DisbursementAPIService disbursementapiservice)
 {
     _context = context;
     this.disbursementapiservice = disbursementapiservice;
 }
예제 #17
0
 public DisbursementAPIService(ADProjContext dbcontext, Emailservice ems)
 {
     this.dbcontext = dbcontext;
     this.ems       = ems;
 }
예제 #18
0
 public RequestServices(ADProjContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
예제 #19
0
 public CommentService(ADProjContext context)
 {
     _context = context;
 }
예제 #20
0
 public InventoryService(ADProjContext adProjContext)
 {
     this.adProjContext = adProjContext;
 }
예제 #21
0
 public mUserGroupController(ADProjContext context, IUserService userService)
 {
     _context      = context;
     _usersService = userService;
 }
예제 #22
0
 public DepartmentService(ADProjContext dbcontext, EmployeeService es)
 {
     this.dbcontext = dbcontext;
     this.es        = es;
 }
예제 #23
0
 public AdjustmentVoucherValidation(ADProjContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
예제 #24
0
 public LegitRecipesSeed(ADProjContext db, UserManager <ApplicationUser> _userManager)
 {
     this.db           = db;
     this._userManager = _userManager;
 }
 public RequestDetailService(ADProjContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
예제 #26
0
 public HomeController(ADProjContext context, IRecipeService recipeService, IGroupService groupService)
 {
     _context       = context;
     _recipeService = recipeService;
     _groupService  = groupService;
 }
 public EmployeeService(ADProjContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
예제 #28
0
 public UserService(ADProjContext context, UserManager <ApplicationUser> userManager)
 {
     _context     = context;
     _userManager = userManager;
 }
 public Emailservice(ADProjContext dbcontext)
 {
     this.dbcontext = dbcontext;
 }
예제 #30
0
 public CommentsController(ADProjContext context, ICommentService commentService, IUserService userService)
 {
     _context        = context;
     _commentService = commentService;
     _userService    = userService;
 }