From 21a3a31f02bfe3aff241adfd13a066fa7a79e55f Mon Sep 17 00:00:00 2001 From: Uncled1023 Date: Mon, 18 Jun 2018 00:45:38 -0700 Subject: [PATCH] Removed tracking attributes from all files. Stopped some app_data files from overwriting publish dir files. --- Teknik/App_Data/referrerBlacklist.txt | 1 - .../Areas/API/Controllers/APIv1Controller.cs | 3 -- .../About/Controllers/AboutController.cs | 1 - .../Abuse/Controllers/AbuseController.cs | 3 +- .../Admin/Controllers/AdminController.cs | 3 -- .../Areas/Blog/Controllers/BlogController.cs | 2 -- .../Contact/Controllers/ContactController.cs | 1 - Teknik/Areas/Dev/Controllers/DevController.cs | 3 +- Teknik/Areas/FAQ/Controllers/FAQController.cs | 3 +- .../Areas/Help/Controllers/HelpController.cs | 31 ++++++------------- .../Areas/Home/Controllers/HomeController.cs | 3 +- .../Paste/Controllers/PasteController.cs | 6 ++-- .../Podcast/Controllers/PodcastController.cs | 5 +-- .../Privacy/Controllers/PrivacyController.cs | 1 - Teknik/Areas/RSS/Controllers/RSSController.cs | 9 ++---- .../Controllers/ShortenerController.cs | 6 ++-- .../Stats/Controllers/StatsController.cs | 3 +- Teknik/Areas/TOS/Controllers/TOSController.cs | 1 - .../Upload/Controllers/UploadController.cs | 2 -- .../Areas/User/Controllers/UserController.cs | 25 +++++---------- .../Vault/Controllers/VaultController.cs | 6 +--- Teknik/Startup.cs | 6 ++-- Teknik/Teknik.csproj | 5 +++ 23 files changed, 39 insertions(+), 90 deletions(-) diff --git a/Teknik/App_Data/referrerBlacklist.txt b/Teknik/App_Data/referrerBlacklist.txt index 25dafa8..e69de29 100644 --- a/Teknik/App_Data/referrerBlacklist.txt +++ b/Teknik/App_Data/referrerBlacklist.txt @@ -1 +0,0 @@ -xn--cckl0itdpc9763ahlyc.tv diff --git a/Teknik/Areas/API/Controllers/APIv1Controller.cs b/Teknik/Areas/API/Controllers/APIv1Controller.cs index 6f07551..0b20adf 100644 --- a/Teknik/Areas/API/Controllers/APIv1Controller.cs +++ b/Teknik/Areas/API/Controllers/APIv1Controller.cs @@ -44,7 +44,6 @@ namespace Teknik.Areas.API.Controllers [HttpPost] [AllowAnonymous] - [ServiceFilter(typeof(TrackPageView))] public async Task UploadAsync(APIv1UploadModel model) { try @@ -197,7 +196,6 @@ namespace Teknik.Areas.API.Controllers [HttpPost] [AllowAnonymous] - [ServiceFilter(typeof(TrackPageView))] public IActionResult Paste(APIv1PasteModel model) { try @@ -242,7 +240,6 @@ namespace Teknik.Areas.API.Controllers [HttpPost] [AllowAnonymous] - [ServiceFilter(typeof(TrackPageView))] public IActionResult Shorten(APIv1ShortenModel model) { try diff --git a/Teknik/Areas/About/Controllers/AboutController.cs b/Teknik/Areas/About/Controllers/AboutController.cs index 875776e..53466a1 100644 --- a/Teknik/Areas/About/Controllers/AboutController.cs +++ b/Teknik/Areas/About/Controllers/AboutController.cs @@ -22,7 +22,6 @@ namespace Teknik.Areas.About.Controllers public AboutController(ILogger logger, Config config, TeknikEntities dbContext) : base(logger, config, dbContext) { } [AllowAnonymous] - [ServiceFilter(typeof(TrackPageView))] public IActionResult Index([FromServices] Config config) { ViewBag.Title = "About - " + config.Title; diff --git a/Teknik/Areas/Abuse/Controllers/AbuseController.cs b/Teknik/Areas/Abuse/Controllers/AbuseController.cs index 1b06206..4ca22fe 100644 --- a/Teknik/Areas/Abuse/Controllers/AbuseController.cs +++ b/Teknik/Areas/Abuse/Controllers/AbuseController.cs @@ -20,8 +20,7 @@ namespace Teknik.Areas.Abuse.Controllers public class AbuseController : DefaultController { public AbuseController(ILogger logger, Config config, TeknikEntities dbContext) : base(logger, config, dbContext) { } - - [ServiceFilter(typeof(TrackPageView))] + [AllowAnonymous] public IActionResult Index() { diff --git a/Teknik/Areas/Admin/Controllers/AdminController.cs b/Teknik/Areas/Admin/Controllers/AdminController.cs index f9f44e9..4d59524 100644 --- a/Teknik/Areas/Admin/Controllers/AdminController.cs +++ b/Teknik/Areas/Admin/Controllers/AdminController.cs @@ -27,7 +27,6 @@ namespace Teknik.Areas.Admin.Controllers public AdminController(ILogger logger, Config config, TeknikEntities dbContext) : base (logger, config, dbContext) { } [HttpGet] - [ServiceFilter(typeof(TrackPageView))] public ActionResult Dashboard() { DashboardViewModel model = new DashboardViewModel(); @@ -35,7 +34,6 @@ namespace Teknik.Areas.Admin.Controllers } [HttpGet] - [ServiceFilter(typeof(TrackPageView))] public ActionResult UserSearch() { UserSearchViewModel model = new UserSearchViewModel(); @@ -43,7 +41,6 @@ namespace Teknik.Areas.Admin.Controllers } [HttpGet] - [ServiceFilter(typeof(TrackPageView))] public ActionResult UserInfo(string username) { if (UserHelper.UserExists(_dbContext, username)) diff --git a/Teknik/Areas/Blog/Controllers/BlogController.cs b/Teknik/Areas/Blog/Controllers/BlogController.cs index dd6699f..d86dce1 100644 --- a/Teknik/Areas/Blog/Controllers/BlogController.cs +++ b/Teknik/Areas/Blog/Controllers/BlogController.cs @@ -29,7 +29,6 @@ namespace Teknik.Areas.Blog.Controllers { public BlogController(ILogger logger, Config config, TeknikEntities dbContext) : base(logger, config, dbContext) { } - [ServiceFilter(typeof(TrackPageView))] [AllowAnonymous] public IActionResult Blog(string username) { @@ -119,7 +118,6 @@ namespace Teknik.Areas.Blog.Controllers } #region Posts - [ServiceFilter(typeof(TrackPageView))] [AllowAnonymous] public IActionResult Post(string username, int id) { diff --git a/Teknik/Areas/Contact/Controllers/ContactController.cs b/Teknik/Areas/Contact/Controllers/ContactController.cs index f8b40e4..1f3f9b9 100644 --- a/Teknik/Areas/Contact/Controllers/ContactController.cs +++ b/Teknik/Areas/Contact/Controllers/ContactController.cs @@ -25,7 +25,6 @@ namespace Teknik.Areas.Contact.Controllers { public ContactController(ILogger logger, Config config, TeknikEntities dbContext) : base(logger, config, dbContext) { } - [ServiceFilter(typeof(TrackPageView))] [AllowAnonymous] public IActionResult Index() { diff --git a/Teknik/Areas/Dev/Controllers/DevController.cs b/Teknik/Areas/Dev/Controllers/DevController.cs index dce3723..87c8be9 100644 --- a/Teknik/Areas/Dev/Controllers/DevController.cs +++ b/Teknik/Areas/Dev/Controllers/DevController.cs @@ -16,8 +16,7 @@ namespace Teknik.Areas.Dev.Controllers public class DevController : DefaultController { public DevController(ILogger logger, Config config, TeknikEntities dbContext) : base(logger, config, dbContext) { } - - [ServiceFilter(typeof(TrackPageView))] + [AllowAnonymous] public IActionResult Index() { diff --git a/Teknik/Areas/FAQ/Controllers/FAQController.cs b/Teknik/Areas/FAQ/Controllers/FAQController.cs index 53aceec..f092c7b 100644 --- a/Teknik/Areas/FAQ/Controllers/FAQController.cs +++ b/Teknik/Areas/FAQ/Controllers/FAQController.cs @@ -16,8 +16,7 @@ namespace Teknik.Areas.FAQ.Controllers public class FAQController : DefaultController { public FAQController(ILogger logger, Config config, TeknikEntities dbContext) : base(logger, config, dbContext) { } - - [ServiceFilter(typeof(TrackPageView))] + [AllowAnonymous] public IActionResult Index() { diff --git a/Teknik/Areas/Help/Controllers/HelpController.cs b/Teknik/Areas/Help/Controllers/HelpController.cs index 8c8bad4..0cf9255 100644 --- a/Teknik/Areas/Help/Controllers/HelpController.cs +++ b/Teknik/Areas/Help/Controllers/HelpController.cs @@ -17,7 +17,6 @@ namespace Teknik.Areas.Help.Controllers { public HelpController(ILogger logger, Config config, TeknikEntities dbContext) : base(logger, config, dbContext) { } - [ServiceFilter(typeof(TrackPageView))] [AllowAnonymous] public IActionResult Index() { @@ -25,8 +24,7 @@ namespace Teknik.Areas.Help.Controllers HelpViewModel model = new HelpViewModel(); return View(model); } - - [ServiceFilter(typeof(TrackPageView))] + [AllowAnonymous] public IActionResult API(string version, string service) { @@ -43,8 +41,7 @@ namespace Teknik.Areas.Help.Controllers } return RedirectToRoute("Error.Http404"); } - - [ServiceFilter(typeof(TrackPageView))] + [AllowAnonymous] public IActionResult Blog() { @@ -52,8 +49,7 @@ namespace Teknik.Areas.Help.Controllers HelpViewModel model = new HelpViewModel(); return View("~/Areas/Help/Views/Help/Blog.cshtml", model); } - - [ServiceFilter(typeof(TrackPageView))] + [AllowAnonymous] public IActionResult Git() { @@ -61,8 +57,7 @@ namespace Teknik.Areas.Help.Controllers HelpViewModel model = new HelpViewModel(); return View("~/Areas/Help/Views/Help/Git.cshtml", model); } - - [ServiceFilter(typeof(TrackPageView))] + [AllowAnonymous] public IActionResult IRC() { @@ -70,8 +65,7 @@ namespace Teknik.Areas.Help.Controllers HelpViewModel model = new HelpViewModel(); return View("~/Areas/Help/Views/Help/IRC.cshtml", model); } - - [ServiceFilter(typeof(TrackPageView))] + [AllowAnonymous] public IActionResult Mail() { @@ -79,8 +73,7 @@ namespace Teknik.Areas.Help.Controllers HelpViewModel model = new HelpViewModel(); return View("~/Areas/Help/Views/Help/Mail.cshtml", model); } - - [ServiceFilter(typeof(TrackPageView))] + [AllowAnonymous] public IActionResult Markdown() { @@ -88,8 +81,7 @@ namespace Teknik.Areas.Help.Controllers HelpViewModel model = new HelpViewModel(); return View("~/Areas/Help/Views/Help/Markdown.cshtml", model); } - - [ServiceFilter(typeof(TrackPageView))] + [AllowAnonymous] public IActionResult Mumble() { @@ -97,8 +89,7 @@ namespace Teknik.Areas.Help.Controllers HelpViewModel model = new HelpViewModel(); return View("~/Areas/Help/Views/Help/Mumble.cshtml", model); } - - [ServiceFilter(typeof(TrackPageView))] + [AllowAnonymous] public IActionResult RSS() { @@ -106,8 +97,7 @@ namespace Teknik.Areas.Help.Controllers HelpViewModel model = new HelpViewModel(); return View("~/Areas/Help/Views/Help/RSS.cshtml", model); } - - [ServiceFilter(typeof(TrackPageView))] + [AllowAnonymous] public IActionResult Tools() { @@ -115,8 +105,7 @@ namespace Teknik.Areas.Help.Controllers HelpViewModel model = new HelpViewModel(); return View("~/Areas/Help/Views/Help/Tools.cshtml", model); } - - [ServiceFilter(typeof(TrackPageView))] + [AllowAnonymous] public IActionResult Upload() { diff --git a/Teknik/Areas/Home/Controllers/HomeController.cs b/Teknik/Areas/Home/Controllers/HomeController.cs index 12eb519..d7d48e2 100644 --- a/Teknik/Areas/Home/Controllers/HomeController.cs +++ b/Teknik/Areas/Home/Controllers/HomeController.cs @@ -21,8 +21,7 @@ namespace Teknik.Areas.Home.Controllers public class HomeController : DefaultController { public HomeController(ILogger logger, Config config, TeknikEntities dbContext) : base(logger, config, dbContext) { } - - [ServiceFilter(typeof(TrackPageView))] + [AllowAnonymous] public IActionResult Index() { diff --git a/Teknik/Areas/Paste/Controllers/PasteController.cs b/Teknik/Areas/Paste/Controllers/PasteController.cs index 1fdc181..578e78c 100644 --- a/Teknik/Areas/Paste/Controllers/PasteController.cs +++ b/Teknik/Areas/Paste/Controllers/PasteController.cs @@ -26,8 +26,7 @@ namespace Teknik.Areas.Paste.Controllers public class PasteController : DefaultController { public PasteController(ILogger logger, Config config, TeknikEntities dbContext) : base(logger, config, dbContext) { } - - [ServiceFilter(typeof(TrackPageView))] + [AllowAnonymous] public IActionResult Index() { @@ -36,8 +35,7 @@ namespace Teknik.Areas.Paste.Controllers PasteCreateViewModel model = new PasteCreateViewModel(); return View(model); } - - [ServiceFilter(typeof(TrackDownload))] + [AllowAnonymous] public IActionResult ViewPaste(string type, string url, string password) { diff --git a/Teknik/Areas/Podcast/Controllers/PodcastController.cs b/Teknik/Areas/Podcast/Controllers/PodcastController.cs index ad71abf..8a37e96 100644 --- a/Teknik/Areas/Podcast/Controllers/PodcastController.cs +++ b/Teknik/Areas/Podcast/Controllers/PodcastController.cs @@ -27,8 +27,7 @@ namespace Teknik.Areas.Podcast.Controllers public class PodcastController : DefaultController { public PodcastController(ILogger logger, Config config, TeknikEntities dbContext) : base(logger, config, dbContext) { } - - [ServiceFilter(typeof(TrackPageView))] + [AllowAnonymous] public IActionResult Index() { @@ -63,7 +62,6 @@ namespace Teknik.Areas.Podcast.Controllers } #region Podcasts - [ServiceFilter(typeof(TrackPageView))] [AllowAnonymous] public IActionResult View(int episode) { @@ -84,7 +82,6 @@ namespace Teknik.Areas.Podcast.Controllers } [HttpGet] - [ServiceFilter(typeof(TrackDownload))] [AllowAnonymous] [ResponseCache(Duration = 31536000, Location = ResponseCacheLocation.Any)] public IActionResult Download(int episode, string fileName) diff --git a/Teknik/Areas/Privacy/Controllers/PrivacyController.cs b/Teknik/Areas/Privacy/Controllers/PrivacyController.cs index 648e370..849508b 100644 --- a/Teknik/Areas/Privacy/Controllers/PrivacyController.cs +++ b/Teknik/Areas/Privacy/Controllers/PrivacyController.cs @@ -17,7 +17,6 @@ namespace Teknik.Areas.Privacy.Controllers { public PrivacyController(ILogger logger, Config config, TeknikEntities dbContext) : base(logger, config, dbContext) { } - [ServiceFilter(typeof(TrackPageView))] [AllowAnonymous] public IActionResult Index() { diff --git a/Teknik/Areas/RSS/Controllers/RSSController.cs b/Teknik/Areas/RSS/Controllers/RSSController.cs index bc1b8e9..1fb2de8 100644 --- a/Teknik/Areas/RSS/Controllers/RSSController.cs +++ b/Teknik/Areas/RSS/Controllers/RSSController.cs @@ -30,8 +30,7 @@ namespace Teknik.Areas.RSS.Controllers public class RSSController : DefaultController { public RSSController(ILogger logger, Config config, TeknikEntities dbContext) : base(logger, config, dbContext) { } - - [ServiceFilter(typeof(TrackDownload))] + [AllowAnonymous] public async Task Index() { @@ -48,8 +47,7 @@ namespace Teknik.Areas.RSS.Controllers await xmlWriter.FlushAsync(); } } - - [ServiceFilter(typeof(TrackDownload))] + [AllowAnonymous] public async Task Blog(string username) { @@ -154,8 +152,7 @@ namespace Teknik.Areas.RSS.Controllers } } - - [ServiceFilter(typeof(TrackDownload))] + [AllowAnonymous] public async Task Podcast() { diff --git a/Teknik/Areas/Shortener/Controllers/ShortenerController.cs b/Teknik/Areas/Shortener/Controllers/ShortenerController.cs index f908237..d243b04 100644 --- a/Teknik/Areas/Shortener/Controllers/ShortenerController.cs +++ b/Teknik/Areas/Shortener/Controllers/ShortenerController.cs @@ -21,8 +21,7 @@ namespace Teknik.Areas.Shortener.Controllers public class ShortenerController : DefaultController { public ShortenerController(ILogger logger, Config config, TeknikEntities dbContext) : base(logger, config, dbContext) { } - - [ServiceFilter(typeof(TrackPageView))] + [AllowAnonymous] public IActionResult Index() { @@ -30,8 +29,7 @@ namespace Teknik.Areas.Shortener.Controllers ShortenViewModel model = new ShortenViewModel(); return View(model); } - - [ServiceFilter(typeof(TrackLink))] + [AllowAnonymous] public IActionResult RedirectToUrl(string url) { diff --git a/Teknik/Areas/Stats/Controllers/StatsController.cs b/Teknik/Areas/Stats/Controllers/StatsController.cs index fb1b306..d8bb73f 100644 --- a/Teknik/Areas/Stats/Controllers/StatsController.cs +++ b/Teknik/Areas/Stats/Controllers/StatsController.cs @@ -22,8 +22,7 @@ namespace Teknik.Areas.Stats.Controllers public class StatsController : DefaultController { public StatsController(ILogger logger, Config config, TeknikEntities dbContext) : base(logger, config, dbContext) { } - - [ServiceFilter(typeof(TrackPageView))] + [AllowAnonymous] public IActionResult Index() { diff --git a/Teknik/Areas/TOS/Controllers/TOSController.cs b/Teknik/Areas/TOS/Controllers/TOSController.cs index 950e6c2..73af299 100644 --- a/Teknik/Areas/TOS/Controllers/TOSController.cs +++ b/Teknik/Areas/TOS/Controllers/TOSController.cs @@ -17,7 +17,6 @@ namespace Teknik.Areas.TOS.Controllers { public TOSController(ILogger logger, Config config, TeknikEntities dbContext) : base(logger, config, dbContext) { } - [ServiceFilter(typeof(TrackPageView))] [AllowAnonymous] public IActionResult Index() { diff --git a/Teknik/Areas/Upload/Controllers/UploadController.cs b/Teknik/Areas/Upload/Controllers/UploadController.cs index 3379b4f..f5333a3 100644 --- a/Teknik/Areas/Upload/Controllers/UploadController.cs +++ b/Teknik/Areas/Upload/Controllers/UploadController.cs @@ -32,7 +32,6 @@ namespace Teknik.Areas.Upload.Controllers public UploadController(ILogger logger, Config config, TeknikEntities dbContext) : base(logger, config, dbContext) { } [HttpGet] - [ServiceFilter(typeof(TrackPageView))] [AllowAnonymous] public IActionResult Index() { @@ -142,7 +141,6 @@ namespace Teknik.Areas.Upload.Controllers // User did not supply key [HttpGet] - [ServiceFilter(typeof(TrackDownload))] [AllowAnonymous] [ResponseCache(Duration = 31536000, Location = ResponseCacheLocation.Any)] public IActionResult Download(string file) diff --git a/Teknik/Areas/User/Controllers/UserController.cs b/Teknik/Areas/User/Controllers/UserController.cs index 1c5896a..10f7695 100644 --- a/Teknik/Areas/User/Controllers/UserController.cs +++ b/Teknik/Areas/User/Controllers/UserController.cs @@ -35,8 +35,7 @@ namespace Teknik.Areas.Users.Controllers private static readonly UsedCodesManager usedCodesManager = new UsedCodesManager(); private const string _AuthSessionKey = "AuthenticatedUser"; - - [ServiceFilter(typeof(TrackPageView))] + [AllowAnonymous] public IActionResult GetPremium() { @@ -48,7 +47,6 @@ namespace Teknik.Areas.Users.Controllers } // GET: Profile/Profile - [ServiceFilter(typeof(TrackPageView))] [AllowAnonymous] public IActionResult ViewProfile(string username) { @@ -106,14 +104,12 @@ namespace Teknik.Areas.Users.Controllers } return View(model); } - - [ServiceFilter(typeof(TrackPageView))] + public IActionResult Settings() { return Redirect(Url.SubRouteUrl("user", "User.SecuritySettings")); } - - [ServiceFilter(typeof(TrackPageView))] + public IActionResult ProfileSettings() { string username = User.Identity.Name; @@ -139,8 +135,7 @@ namespace Teknik.Areas.Users.Controllers return Redirect(Url.SubRouteUrl("error", "Error.Http403")); } - - [ServiceFilter(typeof(TrackPageView))] + public IActionResult SecuritySettings() { string username = User.Identity.Name; @@ -181,8 +176,7 @@ namespace Teknik.Areas.Users.Controllers return Redirect(Url.SubRouteUrl("error", "Error.Http403")); } - - [ServiceFilter(typeof(TrackPageView))] + public IActionResult InviteSettings() { string username = User.Identity.Name; @@ -229,8 +223,7 @@ namespace Teknik.Areas.Users.Controllers return Redirect(Url.SubRouteUrl("error", "Error.Http403")); } - - [ServiceFilter(typeof(TrackPageView))] + public IActionResult BlogSettings() { string username = User.Identity.Name; @@ -255,8 +248,7 @@ namespace Teknik.Areas.Users.Controllers return Redirect(Url.SubRouteUrl("error", "Error.Http403")); } - - [ServiceFilter(typeof(TrackPageView))] + public IActionResult UploadSettings() { string username = User.Identity.Name; @@ -282,7 +274,6 @@ namespace Teknik.Areas.Users.Controllers } [HttpGet] - [ServiceFilter(typeof(TrackPageView))] [AllowAnonymous] public IActionResult ViewRawPGP(string username) { @@ -301,7 +292,6 @@ namespace Teknik.Areas.Users.Controllers } [HttpGet] - [ServiceFilter(typeof(TrackPageView))] [AllowAnonymous] public IActionResult Login(string ReturnUrl) { @@ -412,7 +402,6 @@ namespace Teknik.Areas.Users.Controllers } [HttpGet] - [ServiceFilter(typeof(TrackPageView))] [AllowAnonymous] public IActionResult Register(string inviteCode, string ReturnUrl) { diff --git a/Teknik/Areas/Vault/Controllers/VaultController.cs b/Teknik/Areas/Vault/Controllers/VaultController.cs index ec48d6f..e157a9f 100644 --- a/Teknik/Areas/Vault/Controllers/VaultController.cs +++ b/Teknik/Areas/Vault/Controllers/VaultController.cs @@ -28,8 +28,7 @@ namespace Teknik.Areas.Vault.Controllers public class VaultController : DefaultController { public VaultController(ILogger logger, Config config, TeknikEntities dbContext) : base(logger, config, dbContext) { } - - [ServiceFilter(typeof(TrackPageView))] + [AllowAnonymous] public IActionResult ViewVault(string id) { @@ -107,7 +106,6 @@ namespace Teknik.Areas.Vault.Controllers } [HttpGet] - [ServiceFilter(typeof(TrackPageView))] [AllowAnonymous] public IActionResult NewVault() { @@ -118,7 +116,6 @@ namespace Teknik.Areas.Vault.Controllers } [HttpGet] - [ServiceFilter(typeof(TrackPageView))] [AllowAnonymous] public IActionResult NewVaultFromService(string type, string items) { @@ -156,7 +153,6 @@ namespace Teknik.Areas.Vault.Controllers } [HttpGet] - [ServiceFilter(typeof(TrackPageView))] public IActionResult EditVault(string url, string type, string items) { ViewBag.Title = "Edit Vault"; diff --git a/Teknik/Startup.cs b/Teknik/Startup.cs index a90c436..c5b7fd6 100644 --- a/Teknik/Startup.cs +++ b/Teknik/Startup.cs @@ -63,9 +63,9 @@ namespace Teknik services.AddScoped(opt => Config.Load(dataDir)); // Add Tracking Filter scopes - services.AddScoped(); - services.AddScoped(); - services.AddScoped(); + //services.AddScoped(); + //services.AddScoped(); + //services.AddScoped(); // Create the Database Context services.AddDbContext(options => options diff --git a/Teknik/Teknik.csproj b/Teknik/Teknik.csproj index 52e953b..b6bc4cc 100644 --- a/Teknik/Teknik.csproj +++ b/Teknik/Teknik.csproj @@ -84,21 +84,26 @@ + Never PreserveNewest + Never PreserveNewest + Never PreserveNewest + Never PreserveNewest + Never PreserveNewest