public HtmlTextManager(IHtmlTextRepository htmlText, ITenantManager tenantManager, IHttpContextAccessor httpContextAccessor, ISqlRepository sqlRepository)
 {
     _htmlText      = htmlText;
     _tenantManager = tenantManager;
     _accessor      = httpContextAccessor;
     _sqlRepository = sqlRepository;
 }
示例#2
0
        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"]);
            }
        }
示例#3
0
        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;
 }
示例#5
0
 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;
 }