using _0_Framework.Application;
using CompanyManagment.App.Contracts.Employee;
using Microsoft.AspNetCore.Mvc;
using ServiceHost.BaseControllers;
namespace ServiceHost.Areas.Admin.Controllers;
public class EmployeesController:AdminBaseController
{
private readonly IEmployeeApplication _employeeApplication;
private readonly IAuthHelper _authHelper;
public EmployeesController(IEmployeeApplication employeeApplication, IAuthHelper authHelper)
{
_employeeApplication = employeeApplication;
_authHelper = authHelper;
}
///
/// لیست پرسنل برای جستجو
///
///
///
///
[HttpGet("select_list")]
public async Task>> GetSelectList(string search, long id)
{
var data = await _employeeApplication.GetSelectList(search, id);
return data;
}
[HttpGet]
public async Task>> GetList(GetEmployeeListSearchModel searchModel)
{
var result = await _employeeApplication.GetList(searchModel);
return result;
}
}