mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 07:13:12 +00:00
18 lines
837 B
C#
18 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();
|
|
}
|
|
}
|