18 lines
512 B
C#
18 lines
512 B
C#
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>();
|
|
}
|
|
}
|
|
}
|