Ejemplo n.º 1
0
 public HtmlTextManager(IHtmlTextRepository htmlText, ITenantManager tenantManager, IHttpContextAccessor httpContextAccessor, ISqlRepository sqlRepository)
 {
     _htmlText      = htmlText;
     _tenantManager = tenantManager;
     _accessor      = httpContextAccessor;
     _sqlRepository = sqlRepository;
 }
Ejemplo n.º 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"]);
            }
        }
Ejemplo n.º 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"]);
            }
        }
Ejemplo n.º 4
0
 public HtmlTextManager(IHtmlTextRepository htmltexts, ISqlRepository sql)
 {
     _htmlTexts = htmltexts;
     _sql       = sql;
 }
Ejemplo n.º 5
0
 public HtmlTextManager(IHtmlTextRepository htmltexts)
 {
     _htmlTexts = htmltexts;
 }
Ejemplo n.º 6
0
 public HtmlTextController(IHtmlTextRepository HtmlText)
 {
     htmltext = HtmlText;
 }
        public HtmlTextController(IHtmlTextRepository htmlTextRepository)
        {
            Requires.NotNull("htmlTextRepository", htmlTextRepository);

            repository = htmlTextRepository;
        }
Ejemplo n.º 8
0
 public HtmlTextController(IHtmlTextRepository htmlText, ILogManager logger, IHttpContextAccessor accessor) : base(logger, accessor)
 {
     _htmlText = htmlText;
 }