add ContactUsController to handle contact us form submissions

This commit is contained in:
2025-11-22 15:27:49 +03:30
parent 42cae1295f
commit 36f104f316

View File

@@ -0,0 +1,22 @@
using _0_Framework.Application;
using CompanyManagment.App.Contracts.ContactUs;
using Microsoft.AspNetCore.Mvc;
using ServiceHost.BaseControllers;
namespace ServiceHost.Controllers;
public class ContactUsController:GeneralBaseController
{
private readonly IContactUsApplication _contactUsApplication;
public ContactUsController(IContactUsApplication contactUsApplication)
{
_contactUsApplication = contactUsApplication;
}
public ActionResult<OperationResult> Create([FromBody]CreateContactUs command)
{
var res =_contactUsApplication.Create(command);
return res;
}
}