using _0_Framework.Application; using CompanyManagment.App.Contracts.Employee; using Microsoft.AspNetCore.Mvc; using ServiceHost.BaseControllers; namespace ServiceHost.Areas.Client.Controllers; public class EmployeeController:ClientBaseController { private readonly IEmployeeApplication _employeeApplication; private readonly long _workshopId; public EmployeeController(IEmployeeApplication employeeApplication,IAuthHelper authHelper) { _employeeApplication = employeeApplication; _workshopId = authHelper.GetWorkshopId(); } [HttpGet("select-list")] public async Task>> GetEmployeeSelectList() { var result = await _employeeApplication.WorkedEmployeesInWorkshopSelectList(_workshopId); return result; } }