Add project files.

This commit is contained in:
2025-05-01 15:18:30 +03:00
parent e058ab8015
commit 774d695414
3094 changed files with 1336814 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
using ConstructorAppUI.Dtos.ContactUsDtos;
using Microsoft.AspNetCore.Mvc;
namespace ConstructorAppUI.ViewComponents.HomeComponents
{
public class _HomeContactUsPartialComponent : ViewComponent
{
private readonly string _apiBaseUrl;
public _HomeContactUsPartialComponent(IConfiguration configuration)
{
_apiBaseUrl = configuration["ApiSettings:BaseUrl"];
}
public IViewComponentResult Invoke()
{
// ViewBag ile API base URL'sini taşıyoruz
ViewBag.ApiBaseUrl = _apiBaseUrl;
var model = new CreateContactUsDto(); // Formu boş model ile başlatıyoruz
return View(model);
}
}
}