mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-01 07:33:14 +00:00
17 lines
548 B
C#
17 lines
548 B
C#
|
|
using Data.SeaHavenIndustries;
|
||
|
|
|
||
|
|
namespace SeaHaven.DataServices.Interfaces
|
||
|
|
{
|
||
|
|
public interface ICommentDataService
|
||
|
|
{
|
||
|
|
Task<Comments?> GetByIdAsync(int id);
|
||
|
|
Task<IEnumerable<Comments>> GetAllAsync();
|
||
|
|
Task<IEnumerable<Comments>> GetByWorkOrderIdAsync(int workOrderId);
|
||
|
|
Task<IEnumerable<Comments>> GetByDispatchIdAsync(int dispatchId);
|
||
|
|
Task<Comments> AddAsync(Comments comment);
|
||
|
|
Task UpdateAsync(Comments comment);
|
||
|
|
Task DeleteAsync(int id);
|
||
|
|
Task<bool> ExistsAsync(int id);
|
||
|
|
}
|
||
|
|
}
|