KPO_Course_Work/Address Directory/Services.Abstractions/IStreetService.cs

14 lines
373 B
C#

using Contracts;
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);
}
}