aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Services/Mapper/IGenericMapper.cs
diff options
context:
space:
mode:
Diffstat (limited to 'BackEnd/Timeline/Services/Mapper/IGenericMapper.cs')
-rw-r--r--BackEnd/Timeline/Services/Mapper/IGenericMapper.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/BackEnd/Timeline/Services/Mapper/IGenericMapper.cs b/BackEnd/Timeline/Services/Mapper/IGenericMapper.cs
new file mode 100644
index 00000000..2583f036
--- /dev/null
+++ b/BackEnd/Timeline/Services/Mapper/IGenericMapper.cs
@@ -0,0 +1,12 @@
+using Microsoft.AspNetCore.Mvc;
+using System.Security.Claims;
+using System.Threading.Tasks;
+
+namespace Timeline.Services.Mapper
+{
+ public interface IGenericMapper
+ {
+ TDestination AutoMapperMap<TDestination>(object source);
+ Task<TDestination> MapAsync<TSource, TDestination>(TSource source, IUrlHelper urlHelper, ClaimsPrincipal? user);
+ }
+}