From f0feac9601f1aa2b66a92fadeaa289dcd59ab643 Mon Sep 17 00:00:00 2001 From: mahan Date: Wed, 14 Jan 2026 19:27:23 +0330 Subject: [PATCH] add salary aid controller --- .../Client/Controllers/SalaryAidController.cs | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 ServiceHost/Areas/Client/Controllers/SalaryAidController.cs 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