9 lines
302 B
C#

using Domain.Entities;
namespace Contracts
{
public record CityDto(Guid Id, string Name, Guid RegionId, List<StreetDto> Streets);
public record CityDtoForCreate(string Name, Guid RegionId);
public record CityDtoForUpdate(Guid Id, string Name, Guid RegionId, List<StreetDto> Streets);
}