@model int // ProjectID
@{
    ViewData["Title"] = "CreateProjectGallery";
    Layout = "~/Views/AdminLayout/Index.cshtml";
}

<form asp-action="CreateProjectGallery" asp-controller="ProjectGallery" method="post" enctype="multipart/form-data">

    <div class="form-group">
        <label>Proje Seçiniz:</label>
        <select asp-items="ViewBag.ProjectList" class="form-control" name="projectId" required>
            <option value="">-- Proje Seçiniz --</option>
        </select>
    </div>

    <div class="form-group mt-3">
        <label>Galeri Görselleri:</label>
        <input type="file" name="GalleryFiles" multiple class="form-control" required />
    </div>

    <button type="submit" class="btn btn-primary">Görselleri Yükle</button>
    <a href="/ProjectGallery/Index/" class="btn btn-warning ml-2">Listeye Dön</a>

</form>

