Yiğit Test
Some checks failed
ASP.NET Core CI/Deploy / deploy (push) Has been cancelled

This commit is contained in:
2025-11-08 11:20:49 +03:00
parent 8ea68b0ca3
commit 2f8410a18b
5 changed files with 2740 additions and 7 deletions

View File

@@ -41,15 +41,16 @@ namespace ConstructorAppUI.Controllers
public IActionResult CreateProject()
{
ViewBag.StatusList = Enum.GetValues(typeof(ProjectStatus))
.Cast<ProjectStatus>()
.Select(e => new SelectListItem
{
Value = ((int)e).ToString(), // INT OLARAK VALUE
Text = e.GetType()
.Cast<ProjectStatus>()
.Select(e => new SelectListItem
{
Value = ((int)e).ToString(), // INT OLARAK VALUE
Text = e.GetType()
.GetMember(e.ToString())
.First()
.GetCustomAttribute<DisplayAttribute>()?.Name ?? e.ToString()
}).ToList();
}).ToList();
return View();
}