title: How HttpContext RESPONSE END in ASP.NET Core
body: <p>I want use mvc <code>System.Web.HttpContext.Current.Response.End();</code>
  but trying in mvc core 2 with this code:</p>
  
  <pre><code> private readonly IHttpContextAccessor _httpContextAccessor;
  
              public SmsService(IUnitOfWork uow ,IHttpContextAccessor httpContextAccessor) 
              {
                  _uow = uow;
                  _uow.CheckArgumentIsNull(nameof(_uow));
                  _LockIPRequest= uow.Set&lt;LockIPRequest&gt;();
                  this._httpContextAccessor = httpContextAccessor;
              }
  
        _httpContextAccessor.HttpContext.Response.WriteAsync("&lt;/body&gt;&lt;/html&gt;");
        _httpContextAccessor.HttpContext.Response.end();
  </code></pre>
  
  <p><code>_httpContextAccessor.HttpContext.Response.end();</code></p>
  
  <p>end(); doesn't work mvc core dont exits</p>