// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, SSISContext dbcontext) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseExceptionHandler("/Home/Error"); } app.UseStaticFiles(); app.UseSession(); app.UseRouting(); app.UseAuthorization(); app.UseMiddlewareExtensions(); app.UseEndpoints(endpoints => { endpoints.MapControllerRoute( name: "default", pattern: "{controller=Home}/{action=Index}/{id?}"); }); dbcontext.Database.EnsureDeleted(); dbcontext.Database.EnsureCreated(); new SSISSeeder(dbcontext); }
public AccountController( UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IEmailSender emailSender, ILogger <AccountController> logger, SSISContext context) { _userManager = userManager; _signInManager = signInManager; _emailSender = emailSender; _logger = logger; _context = context; }
public List <Item> ListProducts(string searchStr) { List <Item> items = new List <Item>(); using (var db = new SSISContext()) { if (searchStr == null) { items = db.Items.ToList(); } else { items = db.Items.Where(ite => ite.Description.Contains(searchStr) || ite.Description.Contains(searchStr)).ToList(); } } Session["searchStr"] = searchStr; ViewBag.products = items; return(items); }
public SupplierRepo(SSISContext dbcontext) { this.dbcontext = dbcontext; }
public TenderQuotationRepo(SSISContext dbcontext) { this.dbcontext = dbcontext; }
public CollectionPointRepo(SSISContext dbcontext) { this.dbcontext = dbcontext; }
public RequestDetailsController(SSISContext context) { _context = context; }
public TransactionRepo(SSISContext dbcontext) { this.dbcontext = dbcontext; }
public RequisitionRepo(SSISContext dbcontext) { this.dbcontext = dbcontext; }
public AVDetailsController(SSISContext context) { _context = context; }
public EmployeeRepo(SSISContext dbcontext) { this.dbcontext = dbcontext; }
public DepartmentRepo(SSISContext dbcontext) { this.dbcontext = dbcontext; }
public HomeController(SSISContext context) { _context = context; }
public PurchaseRequestRepo(SSISContext dbcontext) { this.dbcontext = dbcontext; }
public AgentController(SSISContext context) { _context = context; }
public ProductRepo(SSISContext dbcontext) { this.dbcontext = dbcontext; }
public RequestsController(SSISContext context, UserManager <ApplicationUser> userManager) { _context = context; _userManager = userManager; }
public DepartmentsController(SSISContext context, UserManager <ApplicationUser> userManager) { _context = context; _userManager = userManager; }
public AdjustmentVouchersController(SSISContext context) { _context = context; }
public ItemsController(SSISContext context) { _context = context; }
public RetrievalRepo(SSISContext dbcontext) { this.dbcontext = dbcontext; }
public PurchaseOrderDetailRepo(SSISContext dbcontext) { this.dbcontext = dbcontext; }
public AdjustmentVoucherRepo(SSISContext dbcontext) { this.dbcontext = dbcontext; }
public DeptRequestsController(SSISContext context) { _context = context; }