shoc-backend/SeaHaven.DataServices/Interfaces/IEmployeeDataService.cs

18 lines
612 B
C#
Raw Normal View History

2026-04-28 18:55:14 -05:00
using Data.SeaHavenIndustries;
namespace SeaHaven.DataServices.Interfaces
{
public interface IEmployeeDataService
{
Task<Employee?> GetByIdAsync(int id);
Task<Employee?> GetByIdWithDetailsAsync(int id);
Task<IEnumerable<Employee>> GetAllAsync();
Task<(IEnumerable<Employee> Items, int TotalCount)> GetPagedAsync(int page, int pageSize, string? search = null);
Task<Employee> AddAsync(Employee employee);
Task UpdateAsync(Employee employee);
Task DeleteAsync(int id);
Task<bool> ExistsAsync(int id);
Task<int> CountAsync();
}
}