Fix casing for constructor params

This commit is contained in:
Hisham Bin Ateya
2020-03-05 20:03:54 +03:00
parent 303bdf3be2
commit 425b4e1c67
60 changed files with 217 additions and 217 deletions

View File

@ -16,13 +16,13 @@ namespace Oqtane.Modules.HtmlText.Controllers
private readonly ILogManager _logger;
private int _entityId = -1; // passed as a querystring parameter for authorization and used for validation
public HtmlTextController(IHtmlTextRepository HtmlText, ILogManager logger, IHttpContextAccessor HttpContextAccessor)
public HtmlTextController(IHtmlTextRepository htmlText, ILogManager logger, IHttpContextAccessor httpContextAccessor)
{
_htmlText = HtmlText;
_htmlText = htmlText;
_logger = logger;
if (HttpContextAccessor.HttpContext.Request.Query.ContainsKey("entityid"))
if (httpContextAccessor.HttpContext.Request.Query.ContainsKey("entityid"))
{
_entityId = int.Parse(HttpContextAccessor.HttpContext.Request.Query["entityid"]);
_entityId = int.Parse(httpContextAccessor.HttpContext.Request.Query["entityid"]);
}
}