ReviseProjectUpdateMethod
This commit is contained in:
@@ -12,7 +12,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|||||||
namespace ConstructorApp.DataAccessLayer.Migrations
|
namespace ConstructorApp.DataAccessLayer.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(ConstructorContext))]
|
[DbContext(typeof(ConstructorContext))]
|
||||||
[Migration("20250502104655_InitialCreate")]
|
[Migration("20250505194544_InitialCreate")]
|
||||||
partial class InitialCreate
|
partial class InitialCreate
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
@@ -58,7 +58,7 @@ namespace ConstructorApp.DataAccessLayer.Migrations
|
|||||||
new
|
new
|
||||||
{
|
{
|
||||||
Id = 1,
|
Id = 1,
|
||||||
ConcurrencyStamp = "e1751e37-e292-4ceb-ad62-c4f99644cb90",
|
ConcurrencyStamp = "f2c5bc7e-23ad-4a5c-a635-8ff0ce92673b",
|
||||||
Name = "Admin",
|
Name = "Admin",
|
||||||
NormalizedName = "ADMIN"
|
NormalizedName = "ADMIN"
|
||||||
});
|
});
|
||||||
@@ -151,7 +151,7 @@ namespace ConstructorApp.DataAccessLayer.Migrations
|
|||||||
{
|
{
|
||||||
Id = 1,
|
Id = 1,
|
||||||
AccessFailedCount = 0,
|
AccessFailedCount = 0,
|
||||||
ConcurrencyStamp = "5deffe41-e67f-46ce-9958-71447a51ded6",
|
ConcurrencyStamp = "bc2c46b6-f121-42c1-9148-07fc05011d39",
|
||||||
ConfirmCode = 0,
|
ConfirmCode = 0,
|
||||||
Email = "admin@example.com",
|
Email = "admin@example.com",
|
||||||
EmailConfirmed = true,
|
EmailConfirmed = true,
|
||||||
@@ -161,9 +161,9 @@ namespace ConstructorApp.DataAccessLayer.Migrations
|
|||||||
LockoutEnabled = false,
|
LockoutEnabled = false,
|
||||||
NormalizedEmail = "ADMIN@EXAMPLE.COM",
|
NormalizedEmail = "ADMIN@EXAMPLE.COM",
|
||||||
NormalizedUserName = "ADMIN",
|
NormalizedUserName = "ADMIN",
|
||||||
PasswordHash = "AQAAAAIAAYagAAAAEIl8WRP0ke53eoeFSxWiTgRFJpeDuz3nloXC/deWyh8hrs982k+V0IuKDPgy/ZNdkQ==",
|
PasswordHash = "AQAAAAIAAYagAAAAEKwNwFIHzII8pmPdfNoJD2z8DO21sJErTg3t6/7rxBtF/K+wVZ9rQ84WZteoFw4ErQ==",
|
||||||
PhoneNumberConfirmed = false,
|
PhoneNumberConfirmed = false,
|
||||||
SecurityStamp = "89a0e6e1-07a8-4882-964e-a177a0f34a6e",
|
SecurityStamp = "81ee56d1-f627-4392-842f-b931614feee2",
|
||||||
TwoFactorEnabled = false,
|
TwoFactorEnabled = false,
|
||||||
UserName = "admin"
|
UserName = "admin"
|
||||||
});
|
});
|
||||||
@@ -388,12 +388,12 @@ namespace ConstructorApp.DataAccessLayer.Migrations
|
|||||||
migrationBuilder.InsertData(
|
migrationBuilder.InsertData(
|
||||||
table: "AspNetRoles",
|
table: "AspNetRoles",
|
||||||
columns: new[] { "Id", "ConcurrencyStamp", "Name", "NormalizedName" },
|
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(
|
migrationBuilder.InsertData(
|
||||||
table: "AspNetUsers",
|
table: "AspNetUsers",
|
||||||
columns: new[] { "Id", "AccessFailedCount", "ConcurrencyStamp", "ConfirmCode", "Email", "EmailConfirmed", "FirstName", "ImageUrl", "LastName", "LockoutEnabled", "LockoutEnd", "NormalizedEmail", "NormalizedUserName", "PasswordHash", "PhoneNumber", "PhoneNumberConfirmed", "SecurityStamp", "TwoFactorEnabled", "UserName" },
|
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(
|
migrationBuilder.InsertData(
|
||||||
table: "CompanyInfo",
|
table: "CompanyInfo",
|
||||||
@@ -55,7 +55,7 @@ namespace ConstructorApp.DataAccessLayer.Migrations
|
|||||||
new
|
new
|
||||||
{
|
{
|
||||||
Id = 1,
|
Id = 1,
|
||||||
ConcurrencyStamp = "e1751e37-e292-4ceb-ad62-c4f99644cb90",
|
ConcurrencyStamp = "f2c5bc7e-23ad-4a5c-a635-8ff0ce92673b",
|
||||||
Name = "Admin",
|
Name = "Admin",
|
||||||
NormalizedName = "ADMIN"
|
NormalizedName = "ADMIN"
|
||||||
});
|
});
|
||||||
@@ -148,7 +148,7 @@ namespace ConstructorApp.DataAccessLayer.Migrations
|
|||||||
{
|
{
|
||||||
Id = 1,
|
Id = 1,
|
||||||
AccessFailedCount = 0,
|
AccessFailedCount = 0,
|
||||||
ConcurrencyStamp = "5deffe41-e67f-46ce-9958-71447a51ded6",
|
ConcurrencyStamp = "bc2c46b6-f121-42c1-9148-07fc05011d39",
|
||||||
ConfirmCode = 0,
|
ConfirmCode = 0,
|
||||||
Email = "admin@example.com",
|
Email = "admin@example.com",
|
||||||
EmailConfirmed = true,
|
EmailConfirmed = true,
|
||||||
@@ -158,9 +158,9 @@ namespace ConstructorApp.DataAccessLayer.Migrations
|
|||||||
LockoutEnabled = false,
|
LockoutEnabled = false,
|
||||||
NormalizedEmail = "ADMIN@EXAMPLE.COM",
|
NormalizedEmail = "ADMIN@EXAMPLE.COM",
|
||||||
NormalizedUserName = "ADMIN",
|
NormalizedUserName = "ADMIN",
|
||||||
PasswordHash = "AQAAAAIAAYagAAAAEIl8WRP0ke53eoeFSxWiTgRFJpeDuz3nloXC/deWyh8hrs982k+V0IuKDPgy/ZNdkQ==",
|
PasswordHash = "AQAAAAIAAYagAAAAEKwNwFIHzII8pmPdfNoJD2z8DO21sJErTg3t6/7rxBtF/K+wVZ9rQ84WZteoFw4ErQ==",
|
||||||
PhoneNumberConfirmed = false,
|
PhoneNumberConfirmed = false,
|
||||||
SecurityStamp = "89a0e6e1-07a8-4882-964e-a177a0f34a6e",
|
SecurityStamp = "81ee56d1-f627-4392-842f-b931614feee2",
|
||||||
TwoFactorEnabled = false,
|
TwoFactorEnabled = false,
|
||||||
UserName = "admin"
|
UserName = "admin"
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -116,9 +116,7 @@ namespace ConstructorAppUI.Controllers
|
|||||||
return View(values);
|
return View(values);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return View(new UpdateProjectDto());
|
||||||
|
|
||||||
return View();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
|
|||||||
@@ -46,10 +46,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- Görsel CoverUrl -->
|
<!-- Görsel CoverUrl -->
|
||||||
<div class="form-group">
|
<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>
|
<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">
|
<input type="file" class="form-control" name="CoverFile" id="CoverFile">
|
||||||
@if (!string.IsNullOrEmpty(Model.CoverUrl))
|
@if (Model != null && !string.IsNullOrEmpty(Model.CoverUrl))
|
||||||
{
|
{
|
||||||
<img src="@Model.CoverUrl" alt="Görsel" class="img-fluid mt-2" style="width: 100px; height: 100px;">
|
<img src="@Model.CoverUrl" alt="Görsel" class="img-fluid mt-2" style="width: 100px; height: 100px;">
|
||||||
}
|
}
|
||||||
@@ -85,10 +85,10 @@
|
|||||||
|
|
||||||
<!-- Görsel FloorPlanFile -->
|
<!-- Görsel FloorPlanFile -->
|
||||||
<div class="form-group">
|
<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>
|
<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">
|
<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;">
|
<img src="@Model.FloorPlanUrl" alt="Görsel" class="img-fluid mt-2" style="width: 100px; height: 100px;">
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user