コード例 #1
0
 public DetailsModel(MainlineUK.Data.ApplicationDbContext context, IConfiguration configuration, IHttpContextAccessor httpContextAccessor)
 {
     _context        = context;
     IVendiUsername  = configuration["iVendi:Username"];
     IVendiQuoteeUID = configuration["iVendi:QuoteeUID"];
     //DomainName = httpContextAccessor.HttpContext.Request.Scheme + "://" + httpContextAccessor.HttpContext.Request.Host.Value;
     DomainName = "https://" + httpContextAccessor.HttpContext.Request.Host.Value; //Hardcoded as scheme returning incorrect value
 }
コード例 #2
0
 public CreateModel(MainlineUK.Data.ApplicationDbContext context)
 {
     _context = context;
 }
コード例 #3
0
 public IndexModel(MainlineUK.Data.ApplicationDbContext context)
 {
     _context = context;
 }