diff options
author | HombreLaser <sebastian-440@live.com> | 2022-11-24 18:15:51 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2022-11-24 18:15:51 -0600 |
commit | e90d61eca62e1a9cb194d05407969831576c8586 (patch) | |
tree | 1f9223bfef475240c264f00090e8aae9113eb369 /Profiles/PrizeProfile.cs | |
parent | 1a504435120bf50f7a51ff1351abe8b7e398d6a2 (diff) |
Añadido controlador de premios
Diffstat (limited to 'Profiles/PrizeProfile.cs')
-rw-r--r-- | Profiles/PrizeProfile.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Profiles/PrizeProfile.cs b/Profiles/PrizeProfile.cs index 46545ef..1a40062 100644 --- a/Profiles/PrizeProfile.cs +++ b/Profiles/PrizeProfile.cs @@ -1,5 +1,6 @@ -using AutoMapper; - +using AutoMapper; +using Microsoft.AspNetCore.JsonPatch; +using Microsoft.AspNetCore.JsonPatch.Operations; using BackendPIA.Models; using BackendPIA.Forms; @@ -7,6 +8,8 @@ namespace BackendPIA.Profiles { public class PrizeProfile : Profile { public PrizeProfile() { CreateMap<PrizeForm, Prize>(); + CreateMap<JsonPatchDocument<PrizeForm>, JsonPatchDocument<Prize>>(); + CreateMap<Operation<PrizeForm>, Operation<Prize>>(); } } }
\ No newline at end of file |