diff --git a/ServiceHost/Controllers/ContactUsController.cs b/ServiceHost/Controllers/ContactUsController.cs new file mode 100644 index 00000000..e31b4bb1 --- /dev/null +++ b/ServiceHost/Controllers/ContactUsController.cs @@ -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 Create([FromBody]CreateContactUs command) + { + var res =_contactUsApplication.Create(command); + return res; + } +} \ No newline at end of file