diff --git a/ServiceHost/Areas/Client/Controllers/SalaryAidController.cs b/ServiceHost/Areas/Client/Controllers/SalaryAidController.cs new file mode 100644 index 00000000..cea07f23 --- /dev/null +++ b/ServiceHost/Areas/Client/Controllers/SalaryAidController.cs @@ -0,0 +1,23 @@ +using CompanyManagment.App.Contracts.SalaryAid; +using Microsoft.AspNetCore.Mvc; +using ServiceHost.BaseControllers; + +namespace ServiceHost.Areas.Client.Controllers; + +public class SalaryAidController:ClientBaseController +{ + private readonly ISalaryAidApplication _salaryAidApplication; + + public SalaryAidController(ISalaryAidApplication salaryAidApplication) + { + _salaryAidApplication = salaryAidApplication; + } + + [HttpGet] + public ActionResult GetList(SalaryAidSearchViewModel searchModel) + { + var result = _salaryAidApplication.GetSearchListAsGrouped(searchModel); + return Ok(result); + } + +} \ No newline at end of file