From 16ef3071406b54fc0dc9161a196f98c19b488cb6 Mon Sep 17 00:00:00 2001 From: Stanislav Mykhailenko Date: Tue, 16 May 2023 22:09:57 +0300 Subject: [PATCH] Implement N-layer architecture --- .../NG_2023_Kanban.BusinessLayer.csproj | 13 +++++++ .../Service/BusinessService.cs | 33 +++++++++++++++++ .../Service/Injecting.cs | 14 ++++++++ .../DbStartup/DatabaseContext.cs | 0 .../DbStartup/DbInitializer.cs | 0 .../DbStartup/Injecting.cs | 8 +++-- .../Entities/BaseEntity.cs | 0 .../Entities/Board.cs | 0 .../Entities/Card.cs | 0 .../Entities/Column.cs | 0 .../Entities/Comment.cs | 0 .../Entities/User.cs | 0 .../EntityConfiguration/BoardConfiguration.cs | 0 .../EntityConfiguration/CardConfiguration.cs | 0 .../ColumnConfiguration.cs | 0 .../CommentConfiguration.cs | 3 +- .../EntityConfiguration/UserConfiguration.cs | 0 .../Models/ErrorViewModel.cs | 0 .../NG_2023_Kanban.DataLayer.csproj | 5 ++- .../Service/DataService.cs | 7 ++-- NG_2023_Kanban.sln | 34 ++++++++++++++++++ .../Controllers/HomeController.cs | 14 +++----- .../Extensions}/SessionExtensions.cs | 0 NG_2023_Kanban/NG_2023_Kanban.csproj | 18 ++++++++++ Program.cs => NG_2023_Kanban/Program.cs | 11 ++---- .../Properties}/launchSettings.json | 0 .../Views}/Home/Index.cshtml | 0 .../Views}/Home/Login.cshtml | 0 .../Views}/Home/Privacy.cshtml | 0 .../Views}/Home/Register.cshtml | 0 .../Views}/Shared/Error.cshtml | 0 .../Views}/Shared/_Layout.cshtml | 0 .../Views}/Shared/_Layout.cshtml.css | 0 .../Shared/_ValidationScriptsPartial.cshtml | 0 .../Views}/_ViewImports.cshtml | 0 .../Views}/_ViewStart.cshtml | 0 .../wwwroot}/css/site.css | 0 .../wwwroot}/favicon.ico | Bin .../wwwroot}/js/site.js | 0 .../wwwroot}/lib/bootstrap/LICENSE | 0 .../lib/bootstrap/dist/css/bootstrap-grid.css | 0 .../bootstrap/dist/css/bootstrap-grid.css.map | 0 .../bootstrap/dist/css/bootstrap-grid.min.css | 0 .../dist/css/bootstrap-grid.min.css.map | 0 .../bootstrap/dist/css/bootstrap-grid.rtl.css | 0 .../dist/css/bootstrap-grid.rtl.css.map | 0 .../dist/css/bootstrap-grid.rtl.min.css | 0 .../dist/css/bootstrap-grid.rtl.min.css.map | 0 .../bootstrap/dist/css/bootstrap-reboot.css | 0 .../dist/css/bootstrap-reboot.css.map | 0 .../dist/css/bootstrap-reboot.min.css | 0 .../dist/css/bootstrap-reboot.min.css.map | 0 .../dist/css/bootstrap-reboot.rtl.css | 0 .../dist/css/bootstrap-reboot.rtl.css.map | 0 .../dist/css/bootstrap-reboot.rtl.min.css | 0 .../dist/css/bootstrap-reboot.rtl.min.css.map | 0 .../dist/css/bootstrap-utilities.css | 0 .../dist/css/bootstrap-utilities.css.map | 0 .../dist/css/bootstrap-utilities.min.css | 0 .../dist/css/bootstrap-utilities.min.css.map | 0 .../dist/css/bootstrap-utilities.rtl.css | 0 .../dist/css/bootstrap-utilities.rtl.css.map | 0 .../dist/css/bootstrap-utilities.rtl.min.css | 0 .../css/bootstrap-utilities.rtl.min.css.map | 0 .../lib/bootstrap/dist/css/bootstrap.css | 0 .../lib/bootstrap/dist/css/bootstrap.css.map | 0 .../lib/bootstrap/dist/css/bootstrap.min.css | 0 .../bootstrap/dist/css/bootstrap.min.css.map | 0 .../lib/bootstrap/dist/css/bootstrap.rtl.css | 0 .../bootstrap/dist/css/bootstrap.rtl.css.map | 0 .../bootstrap/dist/css/bootstrap.rtl.min.css | 0 .../dist/css/bootstrap.rtl.min.css.map | 0 .../lib/bootstrap/dist/js/bootstrap.bundle.js | 0 .../bootstrap/dist/js/bootstrap.bundle.js.map | 0 .../bootstrap/dist/js/bootstrap.bundle.min.js | 0 .../dist/js/bootstrap.bundle.min.js.map | 0 .../lib/bootstrap/dist/js/bootstrap.esm.js | 0 .../bootstrap/dist/js/bootstrap.esm.js.map | 0 .../bootstrap/dist/js/bootstrap.esm.min.js | 0 .../dist/js/bootstrap.esm.min.js.map | 0 .../lib/bootstrap/dist/js/bootstrap.js | 0 .../lib/bootstrap/dist/js/bootstrap.js.map | 0 .../lib/bootstrap/dist/js/bootstrap.min.js | 0 .../bootstrap/dist/js/bootstrap.min.js.map | 0 .../jquery-validation-unobtrusive/LICENSE.txt | 0 .../jquery.validate.unobtrusive.js | 0 .../jquery.validate.unobtrusive.min.js | 0 .../wwwroot}/lib/jquery-validation/LICENSE.md | 0 .../dist/additional-methods.js | 0 .../dist/additional-methods.min.js | 0 .../jquery-validation/dist/jquery.validate.js | 0 .../dist/jquery.validate.min.js | 0 .../wwwroot}/lib/jquery/LICENSE.txt | 0 .../wwwroot}/lib/jquery/dist/jquery.js | 0 .../wwwroot}/lib/jquery/dist/jquery.min.js | 0 .../wwwroot}/lib/jquery/dist/jquery.min.map | 0 96 files changed, 132 insertions(+), 28 deletions(-) create mode 100644 NG_2023_Kanban.BusinessLayer/NG_2023_Kanban.BusinessLayer.csproj create mode 100644 NG_2023_Kanban.BusinessLayer/Service/BusinessService.cs create mode 100644 NG_2023_Kanban.BusinessLayer/Service/Injecting.cs rename {DataLayer => NG_2023_Kanban.DataLayer}/DbStartup/DatabaseContext.cs (100%) rename {DataLayer => NG_2023_Kanban.DataLayer}/DbStartup/DbInitializer.cs (100%) rename {DataLayer => NG_2023_Kanban.DataLayer}/DbStartup/Injecting.cs (66%) rename {DataLayer => NG_2023_Kanban.DataLayer}/Entities/BaseEntity.cs (100%) rename {DataLayer => NG_2023_Kanban.DataLayer}/Entities/Board.cs (100%) rename {DataLayer => NG_2023_Kanban.DataLayer}/Entities/Card.cs (100%) rename {DataLayer => NG_2023_Kanban.DataLayer}/Entities/Column.cs (100%) rename {DataLayer => NG_2023_Kanban.DataLayer}/Entities/Comment.cs (100%) rename {DataLayer => NG_2023_Kanban.DataLayer}/Entities/User.cs (100%) rename {DataLayer => NG_2023_Kanban.DataLayer}/EntityConfiguration/BoardConfiguration.cs (100%) rename {DataLayer => NG_2023_Kanban.DataLayer}/EntityConfiguration/CardConfiguration.cs (100%) rename {DataLayer => NG_2023_Kanban.DataLayer}/EntityConfiguration/ColumnConfiguration.cs (100%) rename {DataLayer => NG_2023_Kanban.DataLayer}/EntityConfiguration/CommentConfiguration.cs (90%) rename {DataLayer => NG_2023_Kanban.DataLayer}/EntityConfiguration/UserConfiguration.cs (100%) rename {DataLayer => NG_2023_Kanban.DataLayer}/Models/ErrorViewModel.cs (100%) rename NG_2023_Kanban.csproj => NG_2023_Kanban.DataLayer/NG_2023_Kanban.DataLayer.csproj (77%) rename BusinessLayer/Service/DbService.cs => NG_2023_Kanban.DataLayer/Service/DataService.cs (89%) create mode 100644 NG_2023_Kanban.sln rename {PresentationLayer => NG_2023_Kanban}/Controllers/HomeController.cs (86%) rename {Extensions => NG_2023_Kanban/Extensions}/SessionExtensions.cs (100%) create mode 100644 NG_2023_Kanban/NG_2023_Kanban.csproj rename Program.cs => NG_2023_Kanban/Program.cs (78%) rename {Properties => NG_2023_Kanban/Properties}/launchSettings.json (100%) rename {Views => NG_2023_Kanban/Views}/Home/Index.cshtml (100%) rename {Views => NG_2023_Kanban/Views}/Home/Login.cshtml (100%) rename {Views => NG_2023_Kanban/Views}/Home/Privacy.cshtml (100%) rename {Views => NG_2023_Kanban/Views}/Home/Register.cshtml (100%) rename {Views => NG_2023_Kanban/Views}/Shared/Error.cshtml (100%) rename {Views => NG_2023_Kanban/Views}/Shared/_Layout.cshtml (100%) rename {Views => NG_2023_Kanban/Views}/Shared/_Layout.cshtml.css (100%) rename {Views => NG_2023_Kanban/Views}/Shared/_ValidationScriptsPartial.cshtml (100%) rename {Views => NG_2023_Kanban/Views}/_ViewImports.cshtml (100%) rename {Views => NG_2023_Kanban/Views}/_ViewStart.cshtml (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/css/site.css (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/favicon.ico (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/js/site.js (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/LICENSE (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap-grid.css (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap-grid.css.map (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap-grid.min.css (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap-grid.min.css.map (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap-grid.rtl.css (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap-grid.rtl.css.map (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap-grid.rtl.min.css (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap-grid.rtl.min.css.map (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap-reboot.css (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap-reboot.css.map (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap-reboot.min.css (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap-reboot.min.css.map (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css.map (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap-reboot.rtl.min.css (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap-reboot.rtl.min.css.map (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap-utilities.css (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap-utilities.css.map (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap-utilities.min.css (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap-utilities.min.css.map (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css.map (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap-utilities.rtl.min.css (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap-utilities.rtl.min.css.map (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap.css (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap.css.map (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap.min.css (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap.min.css.map (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap.rtl.css (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap.rtl.css.map (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap.rtl.min.css (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/css/bootstrap.rtl.min.css.map (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/js/bootstrap.bundle.js (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/js/bootstrap.bundle.js.map (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/js/bootstrap.bundle.min.js (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/js/bootstrap.bundle.min.js.map (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/js/bootstrap.esm.js (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/js/bootstrap.esm.js.map (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/js/bootstrap.esm.min.js (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/js/bootstrap.esm.min.js.map (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/js/bootstrap.js (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/js/bootstrap.js.map (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/js/bootstrap.min.js (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/bootstrap/dist/js/bootstrap.min.js.map (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/jquery-validation-unobtrusive/LICENSE.txt (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/jquery-validation/LICENSE.md (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/jquery-validation/dist/additional-methods.js (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/jquery-validation/dist/additional-methods.min.js (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/jquery-validation/dist/jquery.validate.js (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/jquery-validation/dist/jquery.validate.min.js (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/jquery/LICENSE.txt (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/jquery/dist/jquery.js (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/jquery/dist/jquery.min.js (100%) rename {wwwroot => NG_2023_Kanban/wwwroot}/lib/jquery/dist/jquery.min.map (100%) diff --git a/NG_2023_Kanban.BusinessLayer/NG_2023_Kanban.BusinessLayer.csproj b/NG_2023_Kanban.BusinessLayer/NG_2023_Kanban.BusinessLayer.csproj new file mode 100644 index 0000000..36caefd --- /dev/null +++ b/NG_2023_Kanban.BusinessLayer/NG_2023_Kanban.BusinessLayer.csproj @@ -0,0 +1,13 @@ + + + + net6.0 + enable + enable + + + + + + + diff --git a/NG_2023_Kanban.BusinessLayer/Service/BusinessService.cs b/NG_2023_Kanban.BusinessLayer/Service/BusinessService.cs new file mode 100644 index 0000000..9ee0223 --- /dev/null +++ b/NG_2023_Kanban.BusinessLayer/Service/BusinessService.cs @@ -0,0 +1,33 @@ +using NG_2023_Kanban.DataLayer.Service; +using NG_2023_Kanban.DataLayer.Entities; +using Microsoft.EntityFrameworkCore; + +namespace NG_2023_Kanban.BusinessLayer.Service +{ + public class BusinessService + { + private readonly DataService _service; + public BusinessService(DataService service) + { + _service = service; + } + + public async Task LoginAsync(string username, string password) + { + return await _service.LoginAsync(username, password); + } + + public async Task RegisterAsync(string fullName, string username, string password) + { + User account = await _service.AddAsync(new User + { + FullName = fullName, + Username = username, + Password = password, // TODO: hashing + IsAdmin = false + }); + + return account; + } + } +} diff --git a/NG_2023_Kanban.BusinessLayer/Service/Injecting.cs b/NG_2023_Kanban.BusinessLayer/Service/Injecting.cs new file mode 100644 index 0000000..f74800f --- /dev/null +++ b/NG_2023_Kanban.BusinessLayer/Service/Injecting.cs @@ -0,0 +1,14 @@ +using NG_2023_Kanban.BusinessLayer.Service; +using Microsoft.Extensions.DependencyInjection; + +namespace NG_2023_Kanban.BusinessLayer.Inject +{ + public static class Injecting + { + public static void InjectBLL( + this IServiceCollection services) + { + services.AddScoped(); + } + } +} diff --git a/DataLayer/DbStartup/DatabaseContext.cs b/NG_2023_Kanban.DataLayer/DbStartup/DatabaseContext.cs similarity index 100% rename from DataLayer/DbStartup/DatabaseContext.cs rename to NG_2023_Kanban.DataLayer/DbStartup/DatabaseContext.cs diff --git a/DataLayer/DbStartup/DbInitializer.cs b/NG_2023_Kanban.DataLayer/DbStartup/DbInitializer.cs similarity index 100% rename from DataLayer/DbStartup/DbInitializer.cs rename to NG_2023_Kanban.DataLayer/DbStartup/DbInitializer.cs diff --git a/DataLayer/DbStartup/Injecting.cs b/NG_2023_Kanban.DataLayer/DbStartup/Injecting.cs similarity index 66% rename from DataLayer/DbStartup/Injecting.cs rename to NG_2023_Kanban.DataLayer/DbStartup/Injecting.cs index 2fb4450..1c3d8fc 100644 --- a/DataLayer/DbStartup/Injecting.cs +++ b/NG_2023_Kanban.DataLayer/DbStartup/Injecting.cs @@ -1,11 +1,13 @@ -using NG_2023_Kanban.BusinessLayer.Service; +using NG_2023_Kanban.DataLayer.Service; using Microsoft.EntityFrameworkCore; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.DependencyInjection; namespace NG_2023_Kanban.DataLayer.DbStartup { public static class Injecting { - public static void Inject( + public static void InjectDAL( this IServiceCollection services, IConfiguration configuration) { @@ -14,7 +16,7 @@ namespace NG_2023_Kanban.DataLayer.DbStartup options.UseSqlServer( configuration["ConnectionString"]); }); - services.AddScoped(); + services.AddScoped(); } } } diff --git a/DataLayer/Entities/BaseEntity.cs b/NG_2023_Kanban.DataLayer/Entities/BaseEntity.cs similarity index 100% rename from DataLayer/Entities/BaseEntity.cs rename to NG_2023_Kanban.DataLayer/Entities/BaseEntity.cs diff --git a/DataLayer/Entities/Board.cs b/NG_2023_Kanban.DataLayer/Entities/Board.cs similarity index 100% rename from DataLayer/Entities/Board.cs rename to NG_2023_Kanban.DataLayer/Entities/Board.cs diff --git a/DataLayer/Entities/Card.cs b/NG_2023_Kanban.DataLayer/Entities/Card.cs similarity index 100% rename from DataLayer/Entities/Card.cs rename to NG_2023_Kanban.DataLayer/Entities/Card.cs diff --git a/DataLayer/Entities/Column.cs b/NG_2023_Kanban.DataLayer/Entities/Column.cs similarity index 100% rename from DataLayer/Entities/Column.cs rename to NG_2023_Kanban.DataLayer/Entities/Column.cs diff --git a/DataLayer/Entities/Comment.cs b/NG_2023_Kanban.DataLayer/Entities/Comment.cs similarity index 100% rename from DataLayer/Entities/Comment.cs rename to NG_2023_Kanban.DataLayer/Entities/Comment.cs diff --git a/DataLayer/Entities/User.cs b/NG_2023_Kanban.DataLayer/Entities/User.cs similarity index 100% rename from DataLayer/Entities/User.cs rename to NG_2023_Kanban.DataLayer/Entities/User.cs diff --git a/DataLayer/EntityConfiguration/BoardConfiguration.cs b/NG_2023_Kanban.DataLayer/EntityConfiguration/BoardConfiguration.cs similarity index 100% rename from DataLayer/EntityConfiguration/BoardConfiguration.cs rename to NG_2023_Kanban.DataLayer/EntityConfiguration/BoardConfiguration.cs diff --git a/DataLayer/EntityConfiguration/CardConfiguration.cs b/NG_2023_Kanban.DataLayer/EntityConfiguration/CardConfiguration.cs similarity index 100% rename from DataLayer/EntityConfiguration/CardConfiguration.cs rename to NG_2023_Kanban.DataLayer/EntityConfiguration/CardConfiguration.cs diff --git a/DataLayer/EntityConfiguration/ColumnConfiguration.cs b/NG_2023_Kanban.DataLayer/EntityConfiguration/ColumnConfiguration.cs similarity index 100% rename from DataLayer/EntityConfiguration/ColumnConfiguration.cs rename to NG_2023_Kanban.DataLayer/EntityConfiguration/ColumnConfiguration.cs diff --git a/DataLayer/EntityConfiguration/CommentConfiguration.cs b/NG_2023_Kanban.DataLayer/EntityConfiguration/CommentConfiguration.cs similarity index 90% rename from DataLayer/EntityConfiguration/CommentConfiguration.cs rename to NG_2023_Kanban.DataLayer/EntityConfiguration/CommentConfiguration.cs index d0bf996..f89c7f4 100644 --- a/DataLayer/EntityConfiguration/CommentConfiguration.cs +++ b/NG_2023_Kanban.DataLayer/EntityConfiguration/CommentConfiguration.cs @@ -18,7 +18,8 @@ namespace NG_2023_Kanban.DataLayer.EntityConfiguration .HasOne(x => x.Sender) .WithMany(x => x.Comments) .HasForeignKey(x => x.SenderId) - .HasPrincipalKey(x => x.Id); + .HasPrincipalKey(x => x.Id) + .OnDelete(DeleteBehavior.Restrict); builder .HasOne(x => x.Card) diff --git a/DataLayer/EntityConfiguration/UserConfiguration.cs b/NG_2023_Kanban.DataLayer/EntityConfiguration/UserConfiguration.cs similarity index 100% rename from DataLayer/EntityConfiguration/UserConfiguration.cs rename to NG_2023_Kanban.DataLayer/EntityConfiguration/UserConfiguration.cs diff --git a/DataLayer/Models/ErrorViewModel.cs b/NG_2023_Kanban.DataLayer/Models/ErrorViewModel.cs similarity index 100% rename from DataLayer/Models/ErrorViewModel.cs rename to NG_2023_Kanban.DataLayer/Models/ErrorViewModel.cs diff --git a/NG_2023_Kanban.csproj b/NG_2023_Kanban.DataLayer/NG_2023_Kanban.DataLayer.csproj similarity index 77% rename from NG_2023_Kanban.csproj rename to NG_2023_Kanban.DataLayer/NG_2023_Kanban.DataLayer.csproj index 0cf65c7..fac3afc 100644 --- a/NG_2023_Kanban.csproj +++ b/NG_2023_Kanban.DataLayer/NG_2023_Kanban.DataLayer.csproj @@ -1,15 +1,14 @@ - + net6.0 - enable enable + enable - diff --git a/BusinessLayer/Service/DbService.cs b/NG_2023_Kanban.DataLayer/Service/DataService.cs similarity index 89% rename from BusinessLayer/Service/DbService.cs rename to NG_2023_Kanban.DataLayer/Service/DataService.cs index fa8f233..27f5a62 100644 --- a/BusinessLayer/Service/DbService.cs +++ b/NG_2023_Kanban.DataLayer/Service/DataService.cs @@ -2,14 +2,15 @@ using NG_2023_Kanban.DataLayer.Entities; using Microsoft.EntityFrameworkCore; -namespace NG_2023_Kanban.BusinessLayer.Service +namespace NG_2023_Kanban.DataLayer.Service { - public class DbService + public class DataService { private readonly DatabaseContext _context; - public DbService(DatabaseContext context) + public DataService(DatabaseContext context) { _context = context; + _context.Database.EnsureCreated(); } public async Task AddAsync(User entity) diff --git a/NG_2023_Kanban.sln b/NG_2023_Kanban.sln new file mode 100644 index 0000000..1c834ee --- /dev/null +++ b/NG_2023_Kanban.sln @@ -0,0 +1,34 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31903.59 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NG_2023_Kanban", "NG_2023_Kanban\NG_2023_Kanban.csproj", "{9487AF5A-D980-4015-B8EE-BF243BC0534E}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NG_2023_Kanban.BusinessLayer", "NG_2023_Kanban.DataLayer\NG_2023_Kanban.BusinessLayer.csproj", "{B62FD923-EDD7-4A4E-AD73-408C2FD0AC2B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NG_2023_Kanban.BusinessLayer", "NG_2023_Kanban.BusinessLayer\NG_2023_Kanban.BusinessLayer.csproj", "{169BEBE0-05F8-463D-999E-323F37454289}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {9487AF5A-D980-4015-B8EE-BF243BC0534E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9487AF5A-D980-4015-B8EE-BF243BC0534E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9487AF5A-D980-4015-B8EE-BF243BC0534E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9487AF5A-D980-4015-B8EE-BF243BC0534E}.Release|Any CPU.Build.0 = Release|Any CPU + {B62FD923-EDD7-4A4E-AD73-408C2FD0AC2B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B62FD923-EDD7-4A4E-AD73-408C2FD0AC2B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B62FD923-EDD7-4A4E-AD73-408C2FD0AC2B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B62FD923-EDD7-4A4E-AD73-408C2FD0AC2B}.Release|Any CPU.Build.0 = Release|Any CPU + {169BEBE0-05F8-463D-999E-323F37454289}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {169BEBE0-05F8-463D-999E-323F37454289}.Debug|Any CPU.Build.0 = Debug|Any CPU + {169BEBE0-05F8-463D-999E-323F37454289}.Release|Any CPU.ActiveCfg = Release|Any CPU + {169BEBE0-05F8-463D-999E-323F37454289}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/PresentationLayer/Controllers/HomeController.cs b/NG_2023_Kanban/Controllers/HomeController.cs similarity index 86% rename from PresentationLayer/Controllers/HomeController.cs rename to NG_2023_Kanban/Controllers/HomeController.cs index 74a6845..ffd9ab5 100644 --- a/PresentationLayer/Controllers/HomeController.cs +++ b/NG_2023_Kanban/Controllers/HomeController.cs @@ -5,14 +5,14 @@ using NG_2023_Kanban.Extensions; using NG_2023_Kanban.DataLayer.Models; using NG_2023_Kanban.BusinessLayer.Service; -namespace NG_2023_Kanban.PresentationLayer.Controllers; +namespace NG_2023_Kanban.Controllers; public class HomeController : Controller { - private readonly DbService _service; + private readonly BusinessService _service; private readonly ILogger _logger; - public HomeController(ILogger logger, DbService service) + public HomeController(ILogger logger, BusinessService service) { _logger = logger; _service = service; @@ -82,13 +82,7 @@ public class HomeController : Controller try { - User account = await _service.AddAsync(new User - { - FullName = fullName, - Username = username, - Password = password, // TODO: hashing - IsAdmin = false - }); + User account = await _service.RegisterAsync(fullName, username, password); HttpContext.Session.SetObject("Account", account); return Redirect("/Home/Index"); diff --git a/Extensions/SessionExtensions.cs b/NG_2023_Kanban/Extensions/SessionExtensions.cs similarity index 100% rename from Extensions/SessionExtensions.cs rename to NG_2023_Kanban/Extensions/SessionExtensions.cs diff --git a/NG_2023_Kanban/NG_2023_Kanban.csproj b/NG_2023_Kanban/NG_2023_Kanban.csproj new file mode 100644 index 0000000..155cbfc --- /dev/null +++ b/NG_2023_Kanban/NG_2023_Kanban.csproj @@ -0,0 +1,18 @@ + + + + net6.0 + enable + enable + + + + + + + + + + + + diff --git a/Program.cs b/NG_2023_Kanban/Program.cs similarity index 78% rename from Program.cs rename to NG_2023_Kanban/Program.cs index 5fba0f6..ae3683c 100644 --- a/Program.cs +++ b/NG_2023_Kanban/Program.cs @@ -1,10 +1,12 @@ +using NG_2023_Kanban.BusinessLayer.Inject; using NG_2023_Kanban.DataLayer.DbStartup; var builder = WebApplication.CreateBuilder(args); IConfiguration configuration = builder.Configuration; -builder.Services.Inject(configuration); +builder.Services.InjectDAL(configuration); +builder.Services.InjectBLL(); // Add services to the container. builder.Services.AddControllersWithViews(); @@ -27,13 +29,6 @@ if (!app.Environment.IsDevelopment()) app.UseHsts(); } -using(var scope = app.Services.CreateScope()) -{ - var serviceProvider = scope.ServiceProvider; - var context = serviceProvider.GetRequiredService(); - DbInitializer.Initialize(context); -} - app.UseHttpsRedirection(); app.UseStaticFiles(); diff --git a/Properties/launchSettings.json b/NG_2023_Kanban/Properties/launchSettings.json similarity index 100% rename from Properties/launchSettings.json rename to NG_2023_Kanban/Properties/launchSettings.json diff --git a/Views/Home/Index.cshtml b/NG_2023_Kanban/Views/Home/Index.cshtml similarity index 100% rename from Views/Home/Index.cshtml rename to NG_2023_Kanban/Views/Home/Index.cshtml diff --git a/Views/Home/Login.cshtml b/NG_2023_Kanban/Views/Home/Login.cshtml similarity index 100% rename from Views/Home/Login.cshtml rename to NG_2023_Kanban/Views/Home/Login.cshtml diff --git a/Views/Home/Privacy.cshtml b/NG_2023_Kanban/Views/Home/Privacy.cshtml similarity index 100% rename from Views/Home/Privacy.cshtml rename to NG_2023_Kanban/Views/Home/Privacy.cshtml diff --git a/Views/Home/Register.cshtml b/NG_2023_Kanban/Views/Home/Register.cshtml similarity index 100% rename from Views/Home/Register.cshtml rename to NG_2023_Kanban/Views/Home/Register.cshtml diff --git a/Views/Shared/Error.cshtml b/NG_2023_Kanban/Views/Shared/Error.cshtml similarity index 100% rename from Views/Shared/Error.cshtml rename to NG_2023_Kanban/Views/Shared/Error.cshtml diff --git a/Views/Shared/_Layout.cshtml b/NG_2023_Kanban/Views/Shared/_Layout.cshtml similarity index 100% rename from Views/Shared/_Layout.cshtml rename to NG_2023_Kanban/Views/Shared/_Layout.cshtml diff --git a/Views/Shared/_Layout.cshtml.css b/NG_2023_Kanban/Views/Shared/_Layout.cshtml.css similarity index 100% rename from Views/Shared/_Layout.cshtml.css rename to NG_2023_Kanban/Views/Shared/_Layout.cshtml.css diff --git a/Views/Shared/_ValidationScriptsPartial.cshtml b/NG_2023_Kanban/Views/Shared/_ValidationScriptsPartial.cshtml similarity index 100% rename from Views/Shared/_ValidationScriptsPartial.cshtml rename to NG_2023_Kanban/Views/Shared/_ValidationScriptsPartial.cshtml diff --git a/Views/_ViewImports.cshtml b/NG_2023_Kanban/Views/_ViewImports.cshtml similarity index 100% rename from Views/_ViewImports.cshtml rename to NG_2023_Kanban/Views/_ViewImports.cshtml diff --git a/Views/_ViewStart.cshtml b/NG_2023_Kanban/Views/_ViewStart.cshtml similarity index 100% rename from Views/_ViewStart.cshtml rename to NG_2023_Kanban/Views/_ViewStart.cshtml diff --git a/wwwroot/css/site.css b/NG_2023_Kanban/wwwroot/css/site.css similarity index 100% rename from wwwroot/css/site.css rename to NG_2023_Kanban/wwwroot/css/site.css diff --git a/wwwroot/favicon.ico b/NG_2023_Kanban/wwwroot/favicon.ico similarity index 100% rename from wwwroot/favicon.ico rename to NG_2023_Kanban/wwwroot/favicon.ico diff --git a/wwwroot/js/site.js b/NG_2023_Kanban/wwwroot/js/site.js similarity index 100% rename from wwwroot/js/site.js rename to NG_2023_Kanban/wwwroot/js/site.js diff --git a/wwwroot/lib/bootstrap/LICENSE b/NG_2023_Kanban/wwwroot/lib/bootstrap/LICENSE similarity index 100% rename from wwwroot/lib/bootstrap/LICENSE rename to NG_2023_Kanban/wwwroot/lib/bootstrap/LICENSE diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css.map b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css.map similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css.map rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css.map diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css.map b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css.map similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css.map rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css.map diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css.map b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css.map similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css.map rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css.map diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.min.css b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.min.css similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.min.css rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.min.css diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.min.css.map b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.min.css.map similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.min.css.map rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.min.css.map diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css.map b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css.map similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css.map rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css.map diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css.map b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css.map similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css.map rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css.map diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css.map b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css.map similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css.map rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css.map diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.min.css b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.min.css similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.min.css rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.min.css diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.min.css.map b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.min.css.map similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.min.css.map rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.min.css.map diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css.map b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css.map similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css.map rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css.map diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.min.css b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.min.css similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.min.css rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.min.css diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.min.css.map b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.min.css.map similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.min.css.map rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.min.css.map diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css.map b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css.map similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css.map rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css.map diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.min.css b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.min.css similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.min.css rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.min.css diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.min.css.map b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.min.css.map similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.min.css.map rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.min.css.map diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap.css b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap.css similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap.css rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap.css diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap.css.map b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap.css.map similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap.css.map rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap.css.map diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap.min.css rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.css b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.css similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.css rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.css diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.css.map b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.css.map similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.css.map rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.css.map diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.min.css b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.min.css similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.min.css rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.min.css diff --git a/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.min.css.map b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.min.css.map similarity index 100% rename from wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.min.css.map rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.min.css.map diff --git a/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js similarity index 100% rename from wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js diff --git a/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js.map b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js.map similarity index 100% rename from wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js.map rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js.map diff --git a/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js similarity index 100% rename from wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js diff --git a/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js.map b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js.map similarity index 100% rename from wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js.map rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js.map diff --git a/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js similarity index 100% rename from wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js diff --git a/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js.map b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js.map similarity index 100% rename from wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js.map rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js.map diff --git a/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.min.js b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.min.js similarity index 100% rename from wwwroot/lib/bootstrap/dist/js/bootstrap.esm.min.js rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.min.js diff --git a/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.min.js.map b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.min.js.map similarity index 100% rename from wwwroot/lib/bootstrap/dist/js/bootstrap.esm.min.js.map rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.min.js.map diff --git a/wwwroot/lib/bootstrap/dist/js/bootstrap.js b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/js/bootstrap.js similarity index 100% rename from wwwroot/lib/bootstrap/dist/js/bootstrap.js rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/js/bootstrap.js diff --git a/wwwroot/lib/bootstrap/dist/js/bootstrap.js.map b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/js/bootstrap.js.map similarity index 100% rename from wwwroot/lib/bootstrap/dist/js/bootstrap.js.map rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/js/bootstrap.js.map diff --git a/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js similarity index 100% rename from wwwroot/lib/bootstrap/dist/js/bootstrap.min.js rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js diff --git a/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js.map b/NG_2023_Kanban/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js.map similarity index 100% rename from wwwroot/lib/bootstrap/dist/js/bootstrap.min.js.map rename to NG_2023_Kanban/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js.map diff --git a/wwwroot/lib/jquery-validation-unobtrusive/LICENSE.txt b/NG_2023_Kanban/wwwroot/lib/jquery-validation-unobtrusive/LICENSE.txt similarity index 100% rename from wwwroot/lib/jquery-validation-unobtrusive/LICENSE.txt rename to NG_2023_Kanban/wwwroot/lib/jquery-validation-unobtrusive/LICENSE.txt diff --git a/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js b/NG_2023_Kanban/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js similarity index 100% rename from wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js rename to NG_2023_Kanban/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js diff --git a/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js b/NG_2023_Kanban/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js similarity index 100% rename from wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js rename to NG_2023_Kanban/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js diff --git a/wwwroot/lib/jquery-validation/LICENSE.md b/NG_2023_Kanban/wwwroot/lib/jquery-validation/LICENSE.md similarity index 100% rename from wwwroot/lib/jquery-validation/LICENSE.md rename to NG_2023_Kanban/wwwroot/lib/jquery-validation/LICENSE.md diff --git a/wwwroot/lib/jquery-validation/dist/additional-methods.js b/NG_2023_Kanban/wwwroot/lib/jquery-validation/dist/additional-methods.js similarity index 100% rename from wwwroot/lib/jquery-validation/dist/additional-methods.js rename to NG_2023_Kanban/wwwroot/lib/jquery-validation/dist/additional-methods.js diff --git a/wwwroot/lib/jquery-validation/dist/additional-methods.min.js b/NG_2023_Kanban/wwwroot/lib/jquery-validation/dist/additional-methods.min.js similarity index 100% rename from wwwroot/lib/jquery-validation/dist/additional-methods.min.js rename to NG_2023_Kanban/wwwroot/lib/jquery-validation/dist/additional-methods.min.js diff --git a/wwwroot/lib/jquery-validation/dist/jquery.validate.js b/NG_2023_Kanban/wwwroot/lib/jquery-validation/dist/jquery.validate.js similarity index 100% rename from wwwroot/lib/jquery-validation/dist/jquery.validate.js rename to NG_2023_Kanban/wwwroot/lib/jquery-validation/dist/jquery.validate.js diff --git a/wwwroot/lib/jquery-validation/dist/jquery.validate.min.js b/NG_2023_Kanban/wwwroot/lib/jquery-validation/dist/jquery.validate.min.js similarity index 100% rename from wwwroot/lib/jquery-validation/dist/jquery.validate.min.js rename to NG_2023_Kanban/wwwroot/lib/jquery-validation/dist/jquery.validate.min.js diff --git a/wwwroot/lib/jquery/LICENSE.txt b/NG_2023_Kanban/wwwroot/lib/jquery/LICENSE.txt similarity index 100% rename from wwwroot/lib/jquery/LICENSE.txt rename to NG_2023_Kanban/wwwroot/lib/jquery/LICENSE.txt diff --git a/wwwroot/lib/jquery/dist/jquery.js b/NG_2023_Kanban/wwwroot/lib/jquery/dist/jquery.js similarity index 100% rename from wwwroot/lib/jquery/dist/jquery.js rename to NG_2023_Kanban/wwwroot/lib/jquery/dist/jquery.js diff --git a/wwwroot/lib/jquery/dist/jquery.min.js b/NG_2023_Kanban/wwwroot/lib/jquery/dist/jquery.min.js similarity index 100% rename from wwwroot/lib/jquery/dist/jquery.min.js rename to NG_2023_Kanban/wwwroot/lib/jquery/dist/jquery.min.js diff --git a/wwwroot/lib/jquery/dist/jquery.min.map b/NG_2023_Kanban/wwwroot/lib/jquery/dist/jquery.min.map similarity index 100% rename from wwwroot/lib/jquery/dist/jquery.min.map rename to NG_2023_Kanban/wwwroot/lib/jquery/dist/jquery.min.map