ReviseProjectUpdateMethod

This commit is contained in:
2025-05-05 22:47:38 +03:00
parent b5d88122d5
commit aa0362e7cc
5 changed files with 17 additions and 19 deletions

View File

@@ -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
{
/// <inheritdoc />
@@ -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"
});

View File

@@ -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",

View File

@@ -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"
});

View File

@@ -116,9 +116,7 @@ namespace ConstructorAppUI.Controllers
return View(values);
}
return View();
return View(new UpdateProjectDto());
}
[HttpPost]

View File

@@ -46,10 +46,10 @@
</div>
<!-- Görsel CoverUrl -->
<div class="form-group">
<label for="ImageFile">Kapak Görseli</label><br />
<label for="CoverFile">Kapak Görseli</label><br />
<span class="badge badge-danger">Tema Bütünlüğü için Görsel Boyutu 775x524 olmalıdır.</span>
<input type="file" class="form-control" name="CoverFile" id="ImageFile">
@if (!string.IsNullOrEmpty(Model.CoverUrl))
<input type="file" class="form-control" name="CoverFile" id="CoverFile">
@if (Model != null && !string.IsNullOrEmpty(Model.CoverUrl))
{
<img src="@Model.CoverUrl" alt="Görsel" class="img-fluid mt-2" style="width: 100px; height: 100px;">
}
@@ -85,10 +85,10 @@
<!-- Görsel FloorPlanFile -->
<div class="form-group">
<label for="ImageFile">Kat Planı</label><br />
<label for="FloorPlanFile">Kat Planı</label><br />
<span class="badge badge-danger">Tema Bütünlüğü için Görsel Boyutu 775x524 olmalıdır.</span>
<input type="file" class="form-control" name="FloorPlanFile" id="FloorPlanFile">
@if (!string.IsNullOrEmpty(Model.FloorPlanUrl))
@if (Model != null && !string.IsNullOrEmpty(Model.FloorPlanUrl))
{
<img src="@Model.FloorPlanUrl" alt="Görsel" class="img-fluid mt-2" style="width: 100px; height: 100px;">
}