mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 07:13:12 +00:00
18 lines
753 B
C#
18 lines
753 B
C#
|
|
using SeaHaven.Services.DTOs;
|
||
|
|
|
||
|
|
namespace SeaHaven.Services.Interfaces
|
||
|
|
{
|
||
|
|
public interface IEmployeeService
|
||
|
|
{
|
||
|
|
Task<EmployeeDTO?> GetEmployeeByIdAsync(int id);
|
||
|
|
Task<EmployeeDTO?> GetEmployeeByIdWithDetailsAsync(int id);
|
||
|
|
Task<IEnumerable<EmployeeDTO>> GetAllEmployeesAsync();
|
||
|
|
Task<PagedResult<EmployeeDTO>> GetEmployeesPagedAsync(int page, int pageSize, string? search = null);
|
||
|
|
Task<EmployeeDTO> CreateEmployeeAsync(CreateEmployeeDTO dto, string userId);
|
||
|
|
Task<EmployeeDTO> UpdateEmployeeAsync(int id, UpdateEmployeeDTO dto, string userId);
|
||
|
|
Task DeleteEmployeeAsync(int id, string userId);
|
||
|
|
Task<bool> EmployeeExistsAsync(int id);
|
||
|
|
Task<int> GetTotalEmployeeCountAsync();
|
||
|
|
}
|
||
|
|
}
|