mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-01 14:33:15 +00:00
19 lines
837 B
C#
19 lines
837 B
C#
|
|
using SeaHaven.Services.DTOs;
|
||
|
|
|
||
|
|
namespace SeaHaven.Services.Interfaces
|
||
|
|
{
|
||
|
|
public interface ILocationService
|
||
|
|
{
|
||
|
|
Task<LocationDTO?> GetLocationByIdAsync(int id);
|
||
|
|
Task<LocationDTO?> GetLocationByIdWithDetailsAsync(int id);
|
||
|
|
Task<IEnumerable<LocationDTO>> GetAllLocationsAsync();
|
||
|
|
Task<IEnumerable<LocationDTO>> GetLocationsByAccountIdAsync(int accountId);
|
||
|
|
Task<PagedResult<LocationDTO>> GetLocationsPagedAsync(int page, int pageSize, string? search = null);
|
||
|
|
Task<LocationDTO> CreateLocationAsync(CreateLocationDTO dto, string userId);
|
||
|
|
Task<LocationDTO> UpdateLocationAsync(int id, UpdateLocationDTO dto, string userId);
|
||
|
|
Task DeleteLocationAsync(int id, string userId);
|
||
|
|
Task<bool> LocationExistsAsync(int id);
|
||
|
|
Task<int> GetTotalLocationCountAsync();
|
||
|
|
}
|
||
|
|
}
|