Merge branch 'master' into Main
This commit is contained in:
22
ServiceHost/Controllers/ContactUsController.cs
Normal file
22
ServiceHost/Controllers/ContactUsController.cs
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user