var host = new WebHostBuilder()
.UseKestrel(options =>
{
// options.ThreadCount = 4;
options.NoDelay = true;
options.UseHttps("testCert.pfx", "testPassword");
options.UseConnectionLogging();
})
.UseUrls("http://localhost:5000", "https://localhost:5001")
.UseContentRoot(Directory.GetCurrentDirectory())
.UseStartup<Startup>()
.Build();
var article = context.Articles.FirstOrDefault(p => p.ArticleId == ArticleId);
context.Entry(article).Property<int>("CountViews").CurrentValue++;
context.Entry(article).Property<int>("CountViews").IsModified = true;
context.SaveChanges();