using Data.SeaHavenIndustries; namespace SeaHaven.DataServices.Interfaces { public interface ICommentDataService { Task GetByIdAsync(int id); Task> GetAllAsync(); /// /// Comments linked to non-deleted, non-template work orders. /// When is set, only that account's WOs; null = org-wide. /// Task> GetAllForAccountAsync(int? accountId); Task> GetByWorkOrderIdAsync(int workOrderId); Task> GetByDispatchIdAsync(int dispatchId); Task AddAsync(Comments comment); Task UpdateAsync(Comments comment); Task DeleteAsync(int id); Task ExistsAsync(int id); Task StageAsync(Comments comment, CancellationToken cancellationToken); Task> GetVendorViewableForDispatchAsync(int dispatchId, CancellationToken cancellationToken); } }