Files
2026-03-17 09:53:09 -05:00

20 lines
1.1 KiB
C#

using LCU.Library.Internal.IncentiveApiModels.Entities;
using LCU.API.Internal.Operations.IncentiveApi.Models;
using LCU.Library.Internal.IncentiveApiModels.Common;
namespace LCU.API.Internal.Operations.IncentiveApi.Services;
public interface IDepartmentService
{
Task<IReadOnlyCollection<Department>> GetAllDepartmentsAsync();
Task<Department> GetDepartmentByIdAsync(int id);
Task<Department> SaveDepartmentAsync(Department department);
Task<Department> UpdateDepartmentAsync(Department department, int id);
Task<IReadOnlyCollection<Department>> GetDepartmentsByRegionAsync(Region region);
Task<IReadOnlyCollection<Department>> GetDepartmentsByBusinessLineAsync(BusinessLine businessLine);
Task<DepartmentDetails> GetDepartmentDetailsAsync(int id);
Task<IReadOnlyCollection<Department>> GetHierarchicalDepartmentsForEmployeeAsync(AppUser employee, bool includeManagers);
Task<Department> GetDepartmentsByDayforceGlCodeAsync(int glCode);
Task<IReadOnlyCollection<UserDepartment>> FindDepartmentAssignmentsForRange(int departmentId, MonthRange monthRange);
}