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

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