Files
Backend-Api/ServiceHost/Controllers/ContactUsController.cs

22 lines
636 B
C#

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;
}
[HttpPost]
public ActionResult<OperationResult> Create([FromBody]CreateContactUs command)
{
var res =_contactUsApplication.Create(command);
return res;
}
}