initial commit

This commit is contained in:
2026-03-20 23:52:10 +01:00
parent 05bea695bd
commit ce04cd8d77
38 changed files with 3006 additions and 52 deletions

View File

@@ -0,0 +1,15 @@
using AutoMapper;
using CityInfo.API.Entities;
using CityInfo.API.Models;
namespace CityInfo.API.Profiles
{
public class CityProfile: Profile
{
public CityProfile()
{
CreateMap<City, CityWithoutPointsOfInterestDto>();
CreateMap<City, CityDto>();
}
}
}

View File

@@ -0,0 +1,17 @@
using AutoMapper;
using CityInfo.API.Entities;
using CityInfo.API.Models;
namespace CityInfo.API.Profiles
{
public class PointOfInterestProfile: Profile
{
public PointOfInterestProfile()
{
CreateMap<PointOfInterest, PointOfInterestDto>();
CreateMap<PointOfInterestForCreationDto, PointOfInterest>();
CreateMap<PointOfInterestForUpdateDto, PointOfInterest>();
CreateMap<PointOfInterest, PointOfInterestForUpdateDto>();
}
}
}