initial commit
This commit is contained in:
16
CityInfo.API/Models/CityDto.cs
Normal file
16
CityInfo.API/Models/CityDto.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace CityInfo.API.Models
|
||||
{
|
||||
public class CityDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string? Description { get; set; }
|
||||
public int NumberOfPointsOfInterest {
|
||||
get
|
||||
{
|
||||
return PointsOfInterest.Count;
|
||||
}
|
||||
}
|
||||
public ICollection<PointOfInterestDto> PointsOfInterest { get; set; } = new List<PointOfInterestDto>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user