summaryrefslogtreecommitdiff
path: root/Profiles/PrizeProfile.cs
blob: 1da00a9edd678f22c2485c87ff867653c014272a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using AutoMapper; 
using Microsoft.AspNetCore.JsonPatch;
using Microsoft.AspNetCore.JsonPatch.Operations;
using BackendPIA.Models;
using BackendPIA.Forms;

namespace BackendPIA.Profiles {
    public class PrizeProfile : Profile {
        public PrizeProfile() {
            CreateMap<PrizeForm, Prize>();
            CreateMap<JsonPatchDocument<PrizeForm>, JsonPatchDocument<Prize>>();
            CreateMap<Operation<PrizeForm>, Operation<Prize>>();
            CreateMap<Prize, PrizeDTO>();
        }
    }
}