18 lines
473 B
C#
18 lines
473 B
C#
using Contracts;
|
|
using Domain.Entities;
|
|
|
|
namespace Services.Abstractions
|
|
{
|
|
public interface IStreetService
|
|
{
|
|
Task<StreetDto> GetByIdAsync(Guid id);
|
|
Task<List<StreetDto>> GetAllAsync();
|
|
Task<StreetDto> CreateAsync(StreetDtoForCreate streetDto);
|
|
Task UpdateAsync(Guid streetId, StreetDtoForUpdate street);
|
|
Task DeleteAsync(Guid streetId);
|
|
|
|
//Фичи
|
|
Task<List<StreetDto>> SearchAsync(string query);
|
|
}
|
|
}
|