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 }
public CreateModel(MainlineUK.Data.ApplicationDbContext context) { _context = context; }
public IndexModel(MainlineUK.Data.ApplicationDbContext context) { _context = context; }