public HtmlTextManager(IHtmlTextRepository htmlText, ITenantManager tenantManager, IHttpContextAccessor httpContextAccessor, ISqlRepository sqlRepository) { _htmlText = htmlText; _tenantManager = tenantManager; _accessor = httpContextAccessor; _sqlRepository = sqlRepository; }
private int EntityId = -1; // passed as a querystring parameter for authorization and used for validation public HtmlTextController(IHtmlTextRepository HtmlText, IHttpContextAccessor HttpContextAccessor) { htmltext = HtmlText; if (HttpContextAccessor.HttpContext.Request.Query.ContainsKey("entityid")) { EntityId = int.Parse(HttpContextAccessor.HttpContext.Request.Query["entityid"]); } }
private int _entityId = -1; // passed as a querystring parameter for authorization and used for validation public HtmlTextController(IHtmlTextRepository htmlText, ILogManager logger, IHttpContextAccessor httpContextAccessor) { _htmlText = htmlText; _logger = logger; if (httpContextAccessor.HttpContext.Request.Query.ContainsKey("entityid")) { _entityId = int.Parse(httpContextAccessor.HttpContext.Request.Query["entityid"]); } }
public HtmlTextManager(IHtmlTextRepository htmltexts, ISqlRepository sql) { _htmlTexts = htmltexts; _sql = sql; }
public HtmlTextManager(IHtmlTextRepository htmltexts) { _htmlTexts = htmltexts; }
public HtmlTextController(IHtmlTextRepository HtmlText) { htmltext = HtmlText; }
public HtmlTextController(IHtmlTextRepository htmlTextRepository) { Requires.NotNull("htmlTextRepository", htmlTextRepository); repository = htmlTextRepository; }
public HtmlTextController(IHtmlTextRepository htmlText, ILogManager logger, IHttpContextAccessor accessor) : base(logger, accessor) { _htmlText = htmlText; }