diff --git a/ConstructorApp.DataAccessLayer/Migrations/20250502104655_InitialCreate.Designer.cs b/ConstructorApp.DataAccessLayer/Migrations/20250505194544_InitialCreate.Designer.cs
similarity index 99%
rename from ConstructorApp.DataAccessLayer/Migrations/20250502104655_InitialCreate.Designer.cs
rename to ConstructorApp.DataAccessLayer/Migrations/20250505194544_InitialCreate.Designer.cs
index bf47fad..4111607 100644
--- a/ConstructorApp.DataAccessLayer/Migrations/20250502104655_InitialCreate.Designer.cs
+++ b/ConstructorApp.DataAccessLayer/Migrations/20250505194544_InitialCreate.Designer.cs
@@ -12,7 +12,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace ConstructorApp.DataAccessLayer.Migrations
{
[DbContext(typeof(ConstructorContext))]
- [Migration("20250502104655_InitialCreate")]
+ [Migration("20250505194544_InitialCreate")]
partial class InitialCreate
{
///
@@ -58,7 +58,7 @@ namespace ConstructorApp.DataAccessLayer.Migrations
new
{
Id = 1,
- ConcurrencyStamp = "e1751e37-e292-4ceb-ad62-c4f99644cb90",
+ ConcurrencyStamp = "f2c5bc7e-23ad-4a5c-a635-8ff0ce92673b",
Name = "Admin",
NormalizedName = "ADMIN"
});
@@ -151,7 +151,7 @@ namespace ConstructorApp.DataAccessLayer.Migrations
{
Id = 1,
AccessFailedCount = 0,
- ConcurrencyStamp = "5deffe41-e67f-46ce-9958-71447a51ded6",
+ ConcurrencyStamp = "bc2c46b6-f121-42c1-9148-07fc05011d39",
ConfirmCode = 0,
Email = "admin@example.com",
EmailConfirmed = true,
@@ -161,9 +161,9 @@ namespace ConstructorApp.DataAccessLayer.Migrations
LockoutEnabled = false,
NormalizedEmail = "ADMIN@EXAMPLE.COM",
NormalizedUserName = "ADMIN",
- PasswordHash = "AQAAAAIAAYagAAAAEIl8WRP0ke53eoeFSxWiTgRFJpeDuz3nloXC/deWyh8hrs982k+V0IuKDPgy/ZNdkQ==",
+ PasswordHash = "AQAAAAIAAYagAAAAEKwNwFIHzII8pmPdfNoJD2z8DO21sJErTg3t6/7rxBtF/K+wVZ9rQ84WZteoFw4ErQ==",
PhoneNumberConfirmed = false,
- SecurityStamp = "89a0e6e1-07a8-4882-964e-a177a0f34a6e",
+ SecurityStamp = "81ee56d1-f627-4392-842f-b931614feee2",
TwoFactorEnabled = false,
UserName = "admin"
});
diff --git a/ConstructorApp.DataAccessLayer/Migrations/20250502104655_InitialCreate.cs b/ConstructorApp.DataAccessLayer/Migrations/20250505194544_InitialCreate.cs
similarity index 98%
rename from ConstructorApp.DataAccessLayer/Migrations/20250502104655_InitialCreate.cs
rename to ConstructorApp.DataAccessLayer/Migrations/20250505194544_InitialCreate.cs
index 2f800c0..ca764c1 100644
--- a/ConstructorApp.DataAccessLayer/Migrations/20250502104655_InitialCreate.cs
+++ b/ConstructorApp.DataAccessLayer/Migrations/20250505194544_InitialCreate.cs
@@ -388,12 +388,12 @@ namespace ConstructorApp.DataAccessLayer.Migrations
migrationBuilder.InsertData(
table: "AspNetRoles",
columns: new[] { "Id", "ConcurrencyStamp", "Name", "NormalizedName" },
- values: new object[] { 1, "e1751e37-e292-4ceb-ad62-c4f99644cb90", "Admin", "ADMIN" });
+ values: new object[] { 1, "f2c5bc7e-23ad-4a5c-a635-8ff0ce92673b", "Admin", "ADMIN" });
migrationBuilder.InsertData(
table: "AspNetUsers",
columns: new[] { "Id", "AccessFailedCount", "ConcurrencyStamp", "ConfirmCode", "Email", "EmailConfirmed", "FirstName", "ImageUrl", "LastName", "LockoutEnabled", "LockoutEnd", "NormalizedEmail", "NormalizedUserName", "PasswordHash", "PhoneNumber", "PhoneNumberConfirmed", "SecurityStamp", "TwoFactorEnabled", "UserName" },
- values: new object[] { 1, 0, "5deffe41-e67f-46ce-9958-71447a51ded6", 0, "admin@example.com", true, "Admin", "/SeedData/defaultuser.png", "Admin", false, null, "ADMIN@EXAMPLE.COM", "ADMIN", "AQAAAAIAAYagAAAAEIl8WRP0ke53eoeFSxWiTgRFJpeDuz3nloXC/deWyh8hrs982k+V0IuKDPgy/ZNdkQ==", null, false, "89a0e6e1-07a8-4882-964e-a177a0f34a6e", false, "admin" });
+ values: new object[] { 1, 0, "bc2c46b6-f121-42c1-9148-07fc05011d39", 0, "admin@example.com", true, "Admin", "/SeedData/defaultuser.png", "Admin", false, null, "ADMIN@EXAMPLE.COM", "ADMIN", "AQAAAAIAAYagAAAAEKwNwFIHzII8pmPdfNoJD2z8DO21sJErTg3t6/7rxBtF/K+wVZ9rQ84WZteoFw4ErQ==", null, false, "81ee56d1-f627-4392-842f-b931614feee2", false, "admin" });
migrationBuilder.InsertData(
table: "CompanyInfo",
diff --git a/ConstructorApp.DataAccessLayer/Migrations/ConstructorContextModelSnapshot.cs b/ConstructorApp.DataAccessLayer/Migrations/ConstructorContextModelSnapshot.cs
index e3a7902..ff01c34 100644
--- a/ConstructorApp.DataAccessLayer/Migrations/ConstructorContextModelSnapshot.cs
+++ b/ConstructorApp.DataAccessLayer/Migrations/ConstructorContextModelSnapshot.cs
@@ -55,7 +55,7 @@ namespace ConstructorApp.DataAccessLayer.Migrations
new
{
Id = 1,
- ConcurrencyStamp = "e1751e37-e292-4ceb-ad62-c4f99644cb90",
+ ConcurrencyStamp = "f2c5bc7e-23ad-4a5c-a635-8ff0ce92673b",
Name = "Admin",
NormalizedName = "ADMIN"
});
@@ -148,7 +148,7 @@ namespace ConstructorApp.DataAccessLayer.Migrations
{
Id = 1,
AccessFailedCount = 0,
- ConcurrencyStamp = "5deffe41-e67f-46ce-9958-71447a51ded6",
+ ConcurrencyStamp = "bc2c46b6-f121-42c1-9148-07fc05011d39",
ConfirmCode = 0,
Email = "admin@example.com",
EmailConfirmed = true,
@@ -158,9 +158,9 @@ namespace ConstructorApp.DataAccessLayer.Migrations
LockoutEnabled = false,
NormalizedEmail = "ADMIN@EXAMPLE.COM",
NormalizedUserName = "ADMIN",
- PasswordHash = "AQAAAAIAAYagAAAAEIl8WRP0ke53eoeFSxWiTgRFJpeDuz3nloXC/deWyh8hrs982k+V0IuKDPgy/ZNdkQ==",
+ PasswordHash = "AQAAAAIAAYagAAAAEKwNwFIHzII8pmPdfNoJD2z8DO21sJErTg3t6/7rxBtF/K+wVZ9rQ84WZteoFw4ErQ==",
PhoneNumberConfirmed = false,
- SecurityStamp = "89a0e6e1-07a8-4882-964e-a177a0f34a6e",
+ SecurityStamp = "81ee56d1-f627-4392-842f-b931614feee2",
TwoFactorEnabled = false,
UserName = "admin"
});
diff --git a/ConstructorAppUI/Controllers/ProjectController.cs b/ConstructorAppUI/Controllers/ProjectController.cs
index 8471b9e..913fca3 100644
--- a/ConstructorAppUI/Controllers/ProjectController.cs
+++ b/ConstructorAppUI/Controllers/ProjectController.cs
@@ -116,9 +116,7 @@ namespace ConstructorAppUI.Controllers
return View(values);
}
-
-
- return View();
+ return View(new UpdateProjectDto());
}
[HttpPost]
diff --git a/ConstructorAppUI/Views/Project/UpdateProject.cshtml b/ConstructorAppUI/Views/Project/UpdateProject.cshtml
index c7bf125..b67c46b 100644
--- a/ConstructorAppUI/Views/Project/UpdateProject.cshtml
+++ b/ConstructorAppUI/Views/Project/UpdateProject.cshtml
@@ -46,10 +46,10 @@