shoc-backend/SeaHaven.DataServices/Interfaces/IFollowUpDataService.cs
2026-04-28 18:55:14 -05:00

19 lines
789 B
C#

using Data.SeaHavenIndustries;
namespace SeaHaven.DataServices.Interfaces
{
public interface IFollowUpDataService
{
Task<FollowUps?> GetByIdAsync(int id);
Task<FollowUps?> GetByIdWithDetailsAsync(int id);
Task<IEnumerable<FollowUps>> GetAllAsync();
Task<IEnumerable<FollowUps>> GetByWorkOrderIdAsync(int workOrderId);
Task<IEnumerable<FollowUps>> GetByUserIdAsync(string userId);
Task<(IEnumerable<FollowUps> Items, int TotalCount)> GetPagedAsync(int page, int pageSize, string? search = null, string? status = null);
Task<FollowUps> AddAsync(FollowUps followUp);
Task UpdateAsync(FollowUps followUp);
Task DeleteAsync(int id);
Task<bool> ExistsAsync(int id);
Task<int> CountAsync();
}
}