initial commit
This commit is contained in:
15
CityInfo.API/Profiles/CityProfile.cs
Normal file
15
CityInfo.API/Profiles/CityProfile.cs
Normal 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>();
|
||||
}
|
||||
}
|
||||
}
|
||||
17
CityInfo.API/Profiles/PointOfInterestProfile.cs
Normal file
17
CityInfo.API/Profiles/PointOfInterestProfile.cs
Normal 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>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user