mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-02 09:43:22 +00:00
19 lines
877 B
C#
19 lines
877 B
C#
|
|
using SeaHaven.Services.DTOs;
|
||
|
|
|
||
|
|
namespace SeaHaven.Services.Interfaces
|
||
|
|
{
|
||
|
|
public interface IWorkOrderService
|
||
|
|
{
|
||
|
|
Task<WorkOrderDTO?> GetWorkOrderByIdAsync(int id);
|
||
|
|
Task<WorkOrderDTO?> GetWorkOrderByIdWithDetailsAsync(int id);
|
||
|
|
Task<IEnumerable<WorkOrderDTO>> GetAllWorkOrdersAsync();
|
||
|
|
Task<PagedResult<WorkOrderDTO>> GetWorkOrdersPagedAsync(int page, int pageSize, string? search = null, string? status = null, string? priority = null);
|
||
|
|
Task<WorkOrderDTO> CreateWorkOrderAsync(CreateWorkOrderDTO dto, string userId);
|
||
|
|
Task<WorkOrderDTO> UpdateWorkOrderAsync(int id, UpdateWorkOrderDTO dto, string userId);
|
||
|
|
Task DeleteWorkOrderAsync(int id, string userId);
|
||
|
|
Task<bool> WorkOrderExistsAsync(int id);
|
||
|
|
Task<string> GenerateNextInternalWONumberAsync();
|
||
|
|
Task<int> GetTotalWorkOrderCountAsync();
|
||
|
|
}
|
||
|
|
}
|